问题
How can I configure SpecFlow to stop writing logs to the TestResults folder?
I have spent the last few hours reading the documentation and I have also looked here: http://specflow.org/documentation/Configuration/
However, I am unable to find an answer. I assume there must be an app.config setting?
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>
回答1:
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.
Full disclosure: I am one of the developers of SpecFlow and SpecFlow+
来源:https://stackoverflow.com/questions/49028968/disable-the-testresults-folder