Skip to content
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

forceZeroCoverage for Unit Test, Integration Test, ... #633

Closed
guwirth opened this issue Sep 17, 2015 · 0 comments · Fixed by #634
Closed

forceZeroCoverage for Unit Test, Integration Test, ... #633

guwirth opened this issue Sep 17, 2015 · 0 comments · Fixed by #634

Comments

@guwirth
Copy link
Collaborator

guwirth commented Sep 17, 2015

We are using the forceZeroCoverage together with Unit Tests. Setting forceZeroCoverage=true will force currently all coverage results to be zero. We do not use Integration Tests at the moment and as a result we see a red line in the source code viewer for Integration Test results. This is very confusing for the users.

Idea is to make this setting adjustable for which coverage it is valid. Should depend in future which key (sonar.cxx.coverage.reportPath, sonar.cxx.coverage.itReportPath, sonar.cxx.coverage.overallReportPath) is defined in the sonar-project.properties file.

Example 1: Force forceZeroCoverage for Unit Tests only (other keys are not defined)

sonar.cxx.coverage.forceZeroCoverage=true
sonar.cxx.coverage.reportPath=reports/coverage-*.xml

Example 2: Force forceZeroCoverage for Unit Tests and Integration Tests

sonar.cxx.coverage.forceZeroCoverage=true
sonar.cxx.coverage.reportPath=reports/coverage-*.xml
sonar.cxx.coverage.itReportPath=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant