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

fix coverage on SonarCloud #1804

Merged
merged 4 commits into from
Feb 9, 2020
Merged

fix coverage on SonarCloud #1804

merged 4 commits into from
Feb 9, 2020

Conversation

guwirth
Copy link
Collaborator

@guwirth guwirth commented Feb 9, 2020

Importing JaCoCo coverage report in XML format

Version 5.12 of SonarJava analyzer deprecated use JaCoCo’s binary format (.exec files) to import coverage. This binary format is internal to the JaCoCo project, and as such there are no guarantees for backward compatibility, so it should not be used for integration purposes. As a replacement the sonar-jacoco plugin, which imports JaCoCo’s XML coverage report, and this is the preferred option now.

In the guide below, is described how to import this XML report in some common scenarios.
https://community.sonarsource.com/t/coverage-test-data-importing-jacoco-coverage-report-in-xml-format/12151


This change is Reviewable

Importing JaCoCo coverage report in XML format

Version 5.12 of our SonarJava analyzer deprecated use JaCoCo’s binary format (.exec files) to import coverage. This binary format is internal to the JaCoCo project, and as such there are no guarantees for backward compatibility, so it should not be used for integration purposes. As a replacement the sonar-jacoco 273 plugin, which imports JaCoCo’s XML coverage report, and this is the preferred option now.

In this guide, I will describe how to import this XML report in some common scenarios.
https://community.sonarsource.com/t/coverage-test-data-importing-jacoco-coverage-report-in-xml-format/12151
@guwirth guwirth added this to the 1.3.2 milestone Feb 9, 2020
@guwirth guwirth self-assigned this Feb 9, 2020
@guwirth guwirth merged commit 8e88787 into SonarOpenCommunity:master Feb 9, 2020
@guwirth guwirth mentioned this pull request Feb 10, 2020
@guwirth guwirth deleted the fix-coverage branch February 14, 2020 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant