NUnit hangs instead of running tests

Asked by Chris Shaw

Win7 SP1; 64bit; NUnit 2.5.9

This just started late this morning -- earlier, all was normal.
It began after I killed a few 'nunit-agent-x86.exe' processes from the Task Manager -- they do tend to accumulate.

I load my testing.dll with no problem, and all tests show up in the GUI. I select a test or tests, and click Run. The status bar shows:
Running: C:\<path to>\testing.dll
Nothing else happens. The GUI (menu buttons, slider bars, etc.) is responsive, but the tests do not run.

I have:
Rebooted the machine
Uninstalled and re-installed NUnit
Deleted all of the temp/cached files that I could find
Run the same project on another machine, successfully.

What am I missing?

Thanks,
--Chris

Question information

Language:
English Edit question
Status:
Solved
For:
NUnit V2 Edit question
Assignee:
No assignee Edit question
Solved by:
Chris Shaw
Solved:
Last query:
Last reply:
Revision history for this message
Charlie Poole (charlie.poole) said :
#1

One possibility is that the tests are actually running but the
progress reports are not reaching
the Gui. Another is that they are simply not running.

Make sure that no nunit tasks are running and start the gui. Click Run
and do nothing else
in the gui for the length of time it normally takes your tests to run.
Watch in Task Manager
to see whether any agent process is started (depending on what
runtimes are installed on
your system and what your tests require). Look for a TestResult.xml
file being created, which
would indicate that the tests did indeed execute even though the gui
did not show it.

As a second stage of debugging, use the Tools | Settings menu to turn
on NUnit's internal
trace mechanism. The log files created appear in <appdata>/NUnit/logs.

Charlie

On Wed, Mar 23, 2011 at 12:32 PM, Chris Shaw
<email address hidden> wrote:
> New question #150200 on NUnit V2:
> https://answers.launchpad.net/nunitv2/+question/150200
>
> Win7 SP1; 64bit; NUnit 2.5.9
>
> This just started late this morning -- earlier, all was normal.
> It began after I killed a few 'nunit-agent-x86.exe' processes from the Task Manager -- they do tend to accumulate.
>
> I load my testing.dll with no problem, and all tests show up in the GUI.  I select a test or tests, and click Run.  The status bar shows:
> Running: C:\<path to>\testing.dll
> Nothing else happens.  The GUI (menu buttons, slider bars, etc.) is responsive, but the tests do not run.
>
> I have:
> Rebooted the machine
> Uninstalled and re-installed NUnit
> Deleted all of the temp/cached files that I could find
> Run the same project on another machine, successfully.
>
> What am I missing?
>
> Thanks,
> --Chris
>
>
> You received this question notification because you are an answer
> contact for NUnit V2.
>

Revision history for this message
Chris Shaw (cshaw-alionscience) said :
#2

...and another possibility is that something called in the SetUpFixture method waits forever for something that isn't going to happen! Pilot error, easily fixed once I had a clue about where to look.

Thanks for the tip about the log files -- it would have been purely a guessing game without that.

--Chris