App.config for SpecFlow not recognized by NUnit GUI runner

Posted by INTPnerd on Stack Overflow See other posts from Stack Overflow or by INTPnerd
Published on 2010-06-03T02:47:34Z Indexed on 2010/06/03 17:24 UTC
Read the original article Hit count: 607

Filed under:
|

How do I get my App.config file to be recognized/used by the NUnit GUI runner? I have tried placing it in the top folder of my project and in the same folder as my feature files. Here are the contents of my App.config file:

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

  <specFlow>
    <runtime detectAmbiguousMatches="true"
             stopAtFirstError="false"
             missingOrPendingStepsOutcome="Error" />
  </specFlow>
</configuration>

Specifically I am trying to tell NUnit to have a fail result when there is a missing or pending step which is why I am specifying "Error" for this. This actually works correctly when I use TestDriven.net but not when I use the NUnit GUI runner. The GUI always shows a green bar and displays the test as Inconclusive instead of Error or Failed

© Stack Overflow or respective owner

Related posts about nunit

Related posts about specflow