Specflow error: Force regenerate steps possible?

后端 未结 11 1979
猫巷女王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:10

    • Close Visual Studio
    • Open the .csproj in an text editor like NotePad ++
    • Assuming you are using SpecFlow 2.2.0
    • Assuming your features are in ./Features
    • In the area you should see some commands, add this:

      
      
      
      
      
      

    Insert this snippet just inside the part of you .csproj, next to the other s if you can. The commented part is important, it will regenerate the .feature.cs files

    • Re-open Visual Studio
    • Everytime you Build the .feature.cs files will be renegerated
    • You may want to add *.feature.cs to your .gitignore after this

提交回复
热议问题