禁用 TestResults 文件夹

Disable the TestResults folder

如何配置 SpecFlow 停止将日志写入 TestResults 文件夹?

我花了最后几个小时阅读文档,我也看过这里:http://specflow.org/documentation/Configuration/

但是,我找不到答案。我假设必须有一个 app.config 设置?

这是我的 app.config:

<specFlow>
    <!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config -->
  <!-- For additional details on SpecFlow configuration options see http://go.specflow.org/doc-config --><!-- use unit test provider SpecRun+NUnit or SpecRun+MsTest for being able to execute the tests with SpecRun and another provider --><unitTestProvider name="SpecRun"/><plugins>
      <add name="SpecRun"/>
    </plugins></specFlow>

日志文件由 SpecFlow+Runner 生成,目前您无法禁用它的生成。 但我认为这是个好主意,我会把它放在我们的积压工作中。


完全披露:我是 SpecFlow 和 SpecFlow+ 的开发者之一