-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin is marking excluded classes as uncovered #24
Comments
Hi, As far as I remember the refactor performed shouldn't have change the behaviour of that. Regards, |
They do something like this in their POM
Which excludes those classes from Cobertura. Prior to the upgrade they wouldn't show up at all in Sonarqube under Coverage. Now they show up as zero coverage. |
Okay I see. I didn't test this scenario to be honest. |
Could be that it's not something you did in the PR but something that changed in Sonarqube with 6.x that the plugin doesn't account for... |
In this case you need to open a ticket in the Sonar forum. |
If it was a change in Sonarqube that needs to be accounted for in the plugin then wouldn't it be a plugin change, not a Sonar change? Missed use case? |
As I said I didn't test the use case. I will have a look in Sonar documentation |
We just upgraded from an older version of the plugin running in Sonarqube 5.6.6 to the latest running in 6.7. We have a number of Maven builds that excluded classes from Cobertura. The developers report that prior to the Sonarqube/plugin upgrade the excluded classes were not counted/reported in Sonarqube. After the upgrade the classes are showing as uncovered.
It appears that in earlier versions a class in the source code not reported in Cobertura was ignored in Sonarqube. Was there a change such that a class defined in the code that was not reported at all in coverage.xml now shows as uncovered?
The text was updated successfully, but these errors were encountered: