Hi all,
I searched this group and Internet but cannot find solution for my problem. Sorry if question is duplicate.
The Problem:
If test methods are executed from VS using NUnit 3.0 Test Adapter execution fails on attempt to access AppSettings in project's config file:
string browserType=ConfigurationManager.AppSettings["browserType"].ToString();
According to NUnit documentation I called config file for HeadlessExecution.dll project HeadlessExecution.dll.config(this file is also copied to bin\Debug\ folder )
Unfortunatelly Test adapter don't use it.
In the same time, I can sucessfully execute all test using nunit-console if I run HeadlessExecution.nunit project:
<NUnitProject>
<Settings activeconfig="Debug"/>
<Config name="Debug" binpathtype="Auto" configfile="HeadlessExecution.dll.config">
<assembly path="bin\Debug\HeadlessExecution.dll" />
</Config>
<Config name="Release" binpathtype="Auto" configfile="HeadlessExecution.dll.config">
<assembly path="bin\Release\HeadlessExecution.dll" />
</Config>
</NUnitProject>
Environment:
VS 2012
.net-4.5
NUnit 3.0
NUnit 3.0 test adapter
Would you be so kind to help me make NUnit Test adapter work with my app.gonfig file?
Thanks in advance!
-
Best regards,
Olga