2011-02-11 18 views

回答

6

可以使用stepdefinitionreport參數SpecFlow.exe,如下所示:

specflow.exe stepdefinitionreport MyTests.csproj 

但要注意:

  1. 如果你的組件使用的.NET 4.0運行時,你需要使用<supportedRuntime>元素添加specflow.exe.config文件。
  2. 它使用一些僅32位的功能。因此,如果您使用的是64位Windows,則需要使用CORFLAGS /32BIT+來編輯Specflow.exe文件。
  3. 默認情況下,它看起來在bin\Debug文件夾中。
+0

我寫了幾個月前在這裏:http://www.marcusoft.net/2010/12/know-where-you-stepgenerate-step.html – 2011-02-16 21:39:01

相關問題