In SpecFlow how can I share data between steps/features?

In SpecFlow 1.3 there are three methods: static members ScenarioContext ContextInjection Comments: static members are very pragmatic and in this case not so evil as we as developers might first think (there is no threading or need for mocking/replacing in step-definitions) See answer from @Si Keep in this thread If the constructor of a step … Read more

How do you run SpecFlow scenarios from the command line using MSTest?

Behind the scene specflow tests are just regular mstest unit tests. So you should be able to run them the same way using something like: To run a specific scenario: mstest /testcontainer:tests.dll /test:GivenMyScenarioWhenIDoSomeStuff To run a several specific scenario you can use the /test flag multiple times: mstest /testcontainer:tests.dll /test:GivenMyScenarioWhenIDoSomeStuff /test:GivenMyScenarioWhenIDoSomemthingElse To run a feature … Read more