SpecRunner : Test Method getting called twice

I am using Spec Runner to run my test cases, the scenrios are getting called twice.

What might be the issue?

Please find the below scenario and test results attached

ScenarioTestResults

Upvotes: 2

Views: 353

Answers (1)

Andreas Willich
Andreas Willich

Reputation: 5825

Are they failing scenarios? In the standard configuration SpecFlow+Runner retries failing tests.

To disable the retry of a scenario, you have to set the retryCount parameter in the execution element to 0. See http://www.specflow.org/plus/documentation/SpecFlowPlus-Runner-Profiles/#Execution

Full disclosure: I am one of the developers of the SpecFlow+Runner.

Upvotes: 2

Related Questions