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, ... )
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.
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.
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.
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.
I fixed this problem by upgrading to version 2.5.9 (development build). But this has other problems - so Sean's answer is better.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With