Specflow error: Force regenerate steps possible?

后端 未结 11 1973
猫巷女王i
猫巷女王i 2021-02-01 14:32

Is it possible to \"force\" regenerate step definitions for a specflow feature file? I have created this feature file but cannot generate all steps. Am getting a message that al

11条回答
  •  南旧
    南旧 (楼主)
    2021-02-01 15:11

    If you are using the SpecFlow plugin in Visual Studio, you can see which lines have bindings as opposed to the ones that don't due to the highlighting. In addition you can also press F12 to go to the items that have Bindings, generate a binding that can be pasted in where it doesn't exist.

    Also I've not seen this process of generating all the steps in one go as you describe above. To be honest it seems a little counter intuitive as SpecFlow already specifically has warning conditions for when the steps don't exist.

提交回复
热议问题