Search code examples
c#visual-studiounit-testingnunitcode-coverage

"Code Coverage Results" Missing in Visual Studio


I'm really new to testing, just starting out. I understood there should be a tab "Code Coverage Results" which can be opened from the Test tab, or by right-clicking on a test, but it doesn't show up. Also found the key combination C+E, C - that didn't work as well.

Microsoft Visual Studio Community 2022 (64-bit) - Current Version 17.10.0

Doing tests using nUint, .NET 6.0

Test tab:

Test tab

Right-Clicking a test:

Right-Clicking a test


Solution

  • I don't believe this native option exists in Visual Studio. I recommend using a "Run coverlet report vs2022" extension. After installation it will be available in the following path tools -> run code coverage.