Search code examples
c#unit-testingvisual-studio-2022

Test Explorer in Visual Studio 2022 is not working


When I click Run All tests in view, it's running but not showing that tests are passed or failed. I mean it's showing blue marks as shown before]

When I click Run All tests in view, it's running but not showing that tests are passed or failed. I mean it's showing blue marks as shown before


Solution

  • Try invoking them by running the command in console

    dotnet test
    

    If that doesn't help it could be that the NUnit 3 Test Adapter is missing and you need to reinstall it.

    I also suggest you to view the error output of your test runner to get some more information by opening the output panel (by clicking on view-->output), then choosing "tests" (from the 'Show output from' dropdown) and you'll get the specific problem.