Raq
Raq

Reputation: 453

Unit Test Coverage not visible in Sonarqube

I am running analysis on my solution which contains a Unit Test project just like any other projects . But there is 'No Data' in Unit Test Coverage Widgets .But I can see the analysis if I open respective folder/file of UT . How can I see Unit Test Coverage details by adding widget. widgetfolder/file

Upvotes: 1

Views: 7817

Answers (1)

agabrys
agabrys

Reputation: 9116

I am not using any of these tools...i am running analysis with sonar scanner.

SonarQube doesn't generate code coverage data. It displays data provided by reports generated by other tools. You have to configure and execute any code coverage tool and then scanner will upload results to the server.

See how to do it for C#: Code Coverage Results Import (C#, VB.NET)

More about code coverage: Seeing Coverage

Upvotes: 4

Related Questions