Visual Studio 2019: MSTest unit tests are not running in Test Explorer

Problem

I have a unit test project in Visual Studio 2019. When I click Run All Tests, none of the tests run.

I looked in the Tests output window and saw a message that says:

Test project does not reference any .NET NuGet Adapter. Test discovery or execution might not work for this project.

It’s recommended to reference NuGet test adapters in each test project in the solution.

Solution

  1. Right-click on your test project
  2. Click Manage Nuget Packages
  3. Browse > search for MSTest.TestAdapter > click on MSTest.TestAdapter in the results > click Install

Now your MSTest unit tests will run.

2 thoughts on “Visual Studio 2019: MSTest unit tests are not running in Test Explorer”

  1. This didn’t work for me.
    All tests were running, when all of a sudden they started to show in light blue.
    I hate Microsoft every day a little more. Their products suck.

    Reply

Leave a Comment