I am using the latest SonarQube Enterprise Version.
I have a python file named project/projectName/script/fileName.py. This file has many methods written.
Also, I have the unit test written for the fileName.py under the location project/projectName/test/fileNameTest.py.
In SonarQube I am not able to see the percentage of the coverage of fileName.py. It is shown as 0.0% even though I have written the test classes of the methods in the file fileNameTest.py.
But SonarQube calculates the entire project’s code coverage successfully in the Overview section of the dashboard.
Why the coverage percentage of some specific files are not calculated/not displayed even though it’s unit test for methods are written.?