禁用TestResults文件夹 [英] Disable the TestResults folder

查看:87
本文介绍了禁用TestResults文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

How can I configure SpecFlow to stop writing logs to the TestResults folder?

我花了最后几个小时阅读文档,并且还在这里查看: http://specflow .org/documentation/Configuration/

I have spent the last few hours reading the documentation and I have also looked here: http://specflow.org/documentation/Configuration/

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

However, I am unable to find an answer. I assume there must be an app.config setting?

这是我的app.config:

Here is my 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生成的,当前您不能禁用它的生成. 但是我认为这是个好主意,我将其保存在我们的积压中.

The logfile is generated by the SpecFlow+Runner and currently you can not disable the generation of it. But I think this is a good idea and I will put it on our backlog.

完全公开:我是SpecFlow和SpecFlow +的开发商之一

Full disclosure: I am one of the developers of SpecFlow and SpecFlow+

这篇关于禁用TestResults文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆