App.config for SpecFlow using MsTest

Posted by Marcus Hammarberg on December 15, 2010
Stats

Every time I need to configure MsTest to work with SpecFlow I forget the syntax of it... Especially the first part...

The fact that it took me about 30 min to write this post is evidence enough that I should not spend any more on this. Here is my reference:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>

<specFlow>
<unitTestProvider name="MsTest" />
</specFlow>
</configuration>

Also there is some additional config setting that you might want to tweak. Here is a complete version with default values:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>

<specFlow>
<unitTestProvider name="NUnit" />

<language feature="en-US"/>

<runtime detectAmbiguousMatches="true" stopAtFirstError="false" missingOrPendingStepsOutcome="Inconclusive"/>

<trace traceSuccessfulSteps="true" traceTimings="false" minTracedDuration="0:0:0.1"/>
</specFlow>
</configuration>


Published by Marcus Hammarberg on Last updated