Search code examples
c#bddspecflow

Disable the TestResults folder


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>

Solution

  • 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+