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:
- if assembly uses .net 4.0 runtime, you'll need add
specflow.exe.configfile<supportedruntime>element. - it uses functionality that's 32-bit only. if you're on 64-bit windows, you'll need use
corflags /32bit+editspecflow.exefile. - by default, looks in
bin\debugfolder.
Comments
Post a Comment