App.config for SpecFlow not recognized by NUnit GUI runner

How do I get the App.config file that will be recognized / used by the NUnit GUI runner? I tried to place it in the top folder of my project and in the same folder as my function files. Here is 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>

In particular, I am trying to report to NUnit about an unsuccessful result when there is a missing or pending step, so I indicate "Error" for this. This really 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.

I run the GUI with this command line argument:

E:\Program Files\NUnit 2.5.5\bin\net-2.0\nunit.exe "E:\ACSreader \ACSreader2 \trunk\ACSreader2\ACSreader2.sln" /config:

+3
2

NUnit GUI Runner:

NUnit-Runner, , / . NUnit-GUI, TestDriven ReSharper .

, SpecFlow , , Inconclusive.

App.config , . App.config .NET. , .dll.config. SpecFlow. SpecFlow App.config!

, dll, . VisualStudio .


:

App.config , (, ).

github. App.config:

http://github.com/techtalk/SpecFlow-Examples/tree/master/ASP.NET-MVC/BookShop/BookShop.AcceptanceTests/

http://github.com/techtalk/SpecFlow-Examples/tree/master/ASP.NET-MVC/BookShop/BookShop.AcceptanceTests.Selenium/

http://github.com/techtalk/SpecFlow-Examples/tree/master/BowlingKata/BowlingKata-MsTest/Bowling.SpecFlow/

+3

nunit configs nunit, . namespace.config ,

0

Source: https://habr.com/ru/post/1748268/


All Articles