2011-02-11 73 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

相关问题