Can I get SpecFlow to generate a list of missing step definitions without running the tests? -


i'm in process of refactoring our specflow-implemented bdd tests. part of work, i've commented out of step definitions.

as run tests, i'm presented "no matching step definition found 1 or more steps." message.

however, i'd prefer not wait until tests run. there way specflow check missing step definitions without running tests?

you can use stepdefinitionreport parameter specflow.exe, follows:

specflow.exe stepdefinitionreport mytests.csproj 

but aware:

  1. if assembly uses .net 4.0 runtime, you'll need add specflow.exe.config file <supportedruntime> element.
  2. it uses functionality that's 32-bit only. if you're on 64-bit windows, you'll need use corflags /32bit+ edit specflow.exe file.
  3. by default, looks in bin\debug folder.

Comments

Popular posts from this blog

Delphi Wmi Query on a Remote Machine -