禁用TestResults文件夹

问题描述 投票:1回答:1

如何配置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>
c# bdd specflow
1个回答
2
投票

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


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

© www.soinside.com 2019 - 2024. All rights reserved.