0

I have used SonarQube for the code quality of the project written in c# Visual Studio.

The solution in the Visual Studio has Two Projects (Employee and TestEmployee). Employee is the web API project and TestEmployee is the unit testing for the Employee Project.

In SonarQube only Employee Project is Analyzed but not the TestEmployee Project.

The Coverage report is zero(o). The .cs in TestEmployee are not at all showing in the SonarQube.

Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
Rana
  • 53
  • 1
  • 8
  • 1
    I'm not sure I understand what the question is. The code coverage tool shows how much of the *actual* project's source code was covered by the tests executed by the unit project. – Panagiotis Kanavos Sep 20 '19 at 11:42
  • It is showing the code coverage as 0.00% even after the unit test project is been added. – Rana Sep 20 '19 at 13:22
  • Check if the code coverage file is generated. SonarQube only imports the results file it doesn't generate that file itself. – Jeroen Heier Sep 21 '19 at 11:35

0 Answers0