NUnit web.config ASP.NET?

  • Thread starter Thread starter Erik
  • Start date Start date
E

Erik

Hi!

When running NUnit tests against my ASP.NET application I want the values in
the web.config to be loaded, otherwise connectionstrings and other
configurations won't be availible and the tests will fail.

How do I load the web.config from the NUnit tests?

/Erik
 
The name of the configuration file used by default can be
found on the Properties page for the NUnit project. Be
aware that a project is not created if all you do is open
a DLL through NUnit. Instead, start with a New|Project
and then load up the test fixture.

Hope this helps.

Bruce Johnson
http://www.ObjectSharp.com/Bruce
 
Great! tnx!
Bruce Johnson said:
The name of the configuration file used by default can be
found on the Properties page for the NUnit project. Be
aware that a project is not created if all you do is open
a DLL through NUnit. Instead, start with a New|Project
and then load up the test fixture.

Hope this helps.

Bruce Johnson
http://www.ObjectSharp.com/Bruce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top