Closed Schuits closed 1 year ago
Thanks for the report @Schuits.
I'm using Maven,scala version 2.11.12, java and scoverage-maven-plugin.
It's a bit hard to tell because if you're on 2.11.x still that means you're on a fairly old version of scoverage, which is no longer supported. There were some recent fixes for cobertura reports, but they only apply to the 2.x series.
I managed to fix my problem, though I don't remember how. I think moving the generation of the coverage file to after I switch to Java11 did the trick.
I still cannot get the coverage results in SonarQube, but I think that has more to do with that tool than scoverage, so I've asked them for assistance.
Thanks
Describe the bug
I cannot publish Scoverage reports to SonarQube using PublishCodeCoverageResults@1 in a Azure Devops CI/CD pipeline on a self hosted linux agent..
I'm using Maven,scala version 2.11.12, java and scoverage-maven-plugin. After compiling and running the scala tests, I switch the devops environment to Java 11 and attempt to publish the code coverage results with the following : (full path redacted)
I receive the following output
Expected behavior
Code coverage results should be published to SonarQube and available on the dashboard. Also the generated XML and HTML reports should indicate code coverage.
What build tool are you using?
Maven
Version of scoverage
v1.4.11