For VID we did something similar some time ago (in order to support Kotlin).
See https://gerrit.onap.org/r/c/vid/+/94332
It was just adding this to pom file:
<sonar.coverage.jacoco.xmlReportPaths>
${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
From: [email protected] <[email protected]> On Behalf Of
Jessica Wagantall
Sent: Thursday, January 9, 2020 4:05 AM
To: onap-release <[email protected]>; [email protected]
Subject: [onap-discuss] SonarCloud coverage issues
Dear ONAP team.
I am investigating with the Sonar team the reasons why the coverage dropped for
many projects to 0%.
I can help providing more details tomorrow in the TSC meeting but this was
caused by an upgrade that Sonar did to their Jacoco support and seems like it
affected several projects (internal to LF and even external) dropping the
coverage to 0%.
In short, seems like there was an update on the Java analyzer where is no
longer possible to import jacoco.exec reports. Instead, it is suggested we use
XML format.
Here is an example on how another external project fixed their issues:
https://github.com/synyx/urlaubsverwaltung/pull/930/files<https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_synyx_urlaubsverwaltung_pull_930_files&d=DwMFaQ&c=LFYZ-o9_HUMeMTSQicvjIg&r=NJAEHfQoLAqU6Mfo-WCvDEGsbs3O9RNyC3XFKZ7W_Pw&m=LWGzZiOpvMw9jaESTYkevqWuBvAUJhgLwVp0l5TVhnM&s=eCn89iLtF5V6g3PeJ0WLhRqhhDBdsSnSA-eSfCUH7Nc&e=>
Can someone please try this and let me know if this helps? I can get back to
Sonar team and discuss with them about it.
In parallel, I will work on a change that makes it easier for us to switch
sonar plugin versions easier and move us to 3.7.0.1746
Thanks so much
Jess
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19742): https://lists.onap.org/g/onap-discuss/message/19742
Mute This Topic: https://lists.onap.org/mt/69559697/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-