0
votes

I'm using SpecFlow in VS 2015 to create Selenium Webdriver automation tests (though that's not relevant to this question.) Outside of Visual Studio I run the tests with nunit3-console.exe.

Inside VS my App.config is setup for <unitTestProvider name="SpecRun+NUnit" />

My question relates to how scenarios appear in Test Explorer. If I create a feature file "FooTest.feature" with a single scenario "Add foo numbers" with tag @mytag, this is what shows in Test Explorer when I group by traits:

Test Explorer grouped by trait

Or if I group by class I get:

Test Explorer grouped by Class

Do I have any control over this? Or is this just the way it works? Ideally I would just want to view the 'mytag' entry. (Or Category [mytag]. Just not all of them!)

1

1 Answers

0
votes

With SpecRun+NUnit you are generating unit tests in the code behind file for the SpecFlow+Runner (SpecRun) and NUnit. Visual Studio finds them both and so you get everything double. Is there a reason why you have this configuration? Why do you need the NUnit tests? If you are using SpecFlow+Runner, you have to configure it only to SpecRun