Reputation: 91825
I'm in the process of refactoring our SpecFlow-implemented BDD tests. As part of this work, I've commented out most of the step definitions.
As I run the tests, I'm presented with the "No matching step definition found for one or more steps." message.
However, I'd prefer not to wait until the tests are actually run. Is there a way to get SpecFlow to check for missing step definitions without running the tests?
Upvotes: 4
Views: 1619
Reputation: 91825
You can use the stepdefinitionreport
parameter to SpecFlow.exe, as follows:
specflow.exe stepdefinitionreport MyTests.csproj
But be aware:
specflow.exe.config
file with a <supportedRuntime>
element.CORFLAGS /32BIT+
to edit the Specflow.exe
file.bin\Debug
folder.Upvotes: 6