ekolis
ekolis

Reputation: 6806

NUnit won't run my unit tests; says that the test adapter is missing, but I did install it

I have a C# solution containing an NUnit test project. This project is refusing to run any tests; they are found by discovery but then I get these errors (among others) in the output window:

The active test discovery was aborted. Reason: Test host process crashed
========== Test discovery aborted: 0 Tests found in 1.9 sec ==========
---------- Resuming previously aborted test discovery ----------
Test project Tests does not reference any .NET NuGet adapter. Test discovery or execution might not work for this project.

Now I did add that reference (NUnit3TestAdapter) but I still see this error. What's going on? Why won't my tests run? Thanks in advance! :)

Upvotes: 2

Views: 3275

Answers (3)

Lalit Mohan
Lalit Mohan

Reputation: 1

You need to install xunit.runner.visualstudio package

Upvotes: 0

TheSteelDuck
TheSteelDuck

Reputation: 181

Had the same issue. Installing 'NUnit3TestAdapter' nuget package in the UnitTest project fixed the problem for me.

Upvotes: 3

Gowri Pranith Kumar
Gowri Pranith Kumar

Reputation: 1685

Make sure you referred "nunit.framework.dll" in your test project

Upvotes: 0

Related Questions