Search code examples
mstestbddspecflow

BDD Tests are not recognized in command level


I am trying to run Specflow BDD tets in command line and looks like it doesn't recognized those tests. But I am able to run them in VS IDE

enter image description here

enter image description here

Not sure whether there is a path issue.

I tried other options as in the below link as well. No luck though

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


Solution

  • The Problem was, that the code-behind files of the feature files were not generated properly, because the configuration of the unitTestProvider was missing.

    See the documentation for that here: http://www.specflow.org/documentation/Configuration/