Reputation: 436
I have been working with Cucumber (Ruby and Java) and in both cases it is possible to create step definitions skeleton directly from the command line. Now I am working with SpecFlow + NetCore using dotnet-cli and VSCode.
I want to generate step definitions skeleton from the command line but all the documentation I found suggest that this feature is only available when using Visual Studio, is this correct? no command line option to generate step definitions?
Upvotes: 1
Views: 564
Reputation: 436
After reading some Specflow code and VSTest documentation I found the answer to my own question: just need to set the verbosity of the console logger to "detailed".
This means:
dotnet test --logger:"console;verbosity=detailed"
This way the skeleton of the steps definition will be output in the console.
Upvotes: 2