How can I set a breakpoint in VS that will be hit when NUnit runs a test?
Setup: VS 2010; .NET 4.0; NUnit 2.5.7; 64-bit machine running Win7
I have a project which has recently been migrated from VS 2008 (.NET 3.5) to VS 2010 (.NET 4.0).
I run NUnit from VS (in both versions) by opening the project Properties page, setting the "Start Action" on the Debug tab to "Run external program" (nunit-x86.exe), the Command line argument to be the project's .dll, and the Working Directory to the \bin\Testing folder of the project.
Using NUnit 2.5.7 with the old version, I can put a breakpoint at the beginning of a test that I have written (or anywhere within the application code), and step through the code while NUnit is running the test.
Using 2.5.7 with the new version, the same test runs correctly, but the breakpoint is never hit, and VS 2010's IntelliSense informs me that "no symbols have been loaded for this document". Even setting VS to break on thrown exceptions doesn't work.
What am I missing?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- NUnit V2 Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: