Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NUnit 2.5.8, lots of nunit-agent.exe

Each time I run a test in nunit I get another nunit-agent, which does not exit the test completes, or when the tests are reloaded in nunit or when I restart nunit. This ever increasing list of nunit-agent.exe's creates a increasing problem when I try to attach to process from VS2010 and try to debug the running test

Any ideas, Trying to task kill these process is not the answer .... (my environment VS2010, dot net 4.0, nunit 2.5.8, ... )

like image 273
user206890 Avatar asked Nov 29 '10 11:11

user206890


People also ask

What is NUnit agent exe?

The nunit-agent.exe program is used by other runners when the tests are being run in a separate process. It is not intended for direct execution by users.

How do I get NUnit console exe?

The preferred way to download NUnit is through the NuGet package manager. The latest releases of can always be found on the relevant GitHub releases pages.

How do I download and install NUnit?

Downloading the Zip FileDownload the latest binary zip of the NUnit Framework from our Download page. Unzip the file into any convenient directory. You can also download the latest binary zip or an MSI installer of the NUnit Console from GitHub.


2 Answers

I've just encountered the same problem. The fix is to edit the NUnit.exe.config file and add this:

<startup>
  <requiredRuntime version="4.0.30319" />
</startup>

as a child of the configuration element.

It also fixes another problem which is that you couldn't attach to NUnit from the debugger in order to set breakpoints in your tests.

like image 83
Sean Avatar answered Oct 17 '22 18:10

Sean


I fixed this problem by upgrading to version 2.5.9 (development build). But this has other problems - so Sean's answer is better.

like image 27
Jackson Pope Avatar answered Oct 17 '22 18:10

Jackson Pope