开发者

Specflow and generating the steps

开发者 https://www.devze.com 2023-02-16 08:01 出处:网络
I am trying to get hold of BDD using Specflow. One of the problems with Specflow is generating the steps. If I do not have step file then it will generate the s开发者_开发知识库teps in output window w

I am trying to get hold of BDD using Specflow. One of the problems with Specflow is generating the steps. If I do not have step file then it will generate the s开发者_开发知识库teps in output window which I can add in the custom step file. But what happens if I edit the feature file? How can I re create the steps?


Even if you already have a step file, SpecFlow will detect lines in the feature file that do not have a matching step definition and will output generated code for those steps. And if you e.g. add a new scenario that uses only existing step definitions, you shouldn't need to touch the step file at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消