NUnit web.config ASP.NET?

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
 
B

Bruce Johnson

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
 
E

Erik

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top