Search code examples
specflowauto-generatescenarios

Regenerate steps for scenarios in specflow


Is there a way i can "regenerate" steps for the scenarios in specflow.

Currently my feature file has steps which are already bound to it. I would like to generate steps again and write the code all over again without deleting my previous step files.

In case you are wondering why i am doing this, it's related to maintaining the test case. the steps written initially have too much duplication.

REgards


Solution

  • The easiest way I can think of to do this would be to exclude the current steps files from your project (right click on the file in the solution explorer-> Exclude from project) and then you'll be able to regenerate them from the scenario file again.