Closed arobirosa closed 1 year ago
Cobertura isn't compatible with Java 11 because it uses ASM 5. The project is abandoned. I will migrate the coverage analysis to JaCoCo which is compatible with Java 11 and used by SonarCube.
Sonarcloud don't have a free plan for open-source projects and I don't have a server to host a sonarqube.
Hi Antonio,
I use a free Sonarcloud account for a project on gitlab, I think it is still possible to register your project as open source.
As for analyzing sap commerce extensions with Jacoco: that seems to be a bit tricky, but not impossible. Do you use GitHub actions to run tests on pull requests?
Hi @fibsifan ,
I just created a free account in sonarcloud and I will try to try the tests and get the metrics from this project there.
Thanks a lot, Johannes!
Now the ant target qa checks the test line coverage with JaCoCo. If an unit or integration tests fails or the line coverage is lower than 75%, the build fails.
In the ticket #10 I will integrate sonarqube and adapt the ant target qa to send the coverage information to sonar.
I close this ticket.
Latest commit of current deployed version: 37cf3dc
Steps to reproduce:
Expected Result
ca. 75% Coverage
Actual Result
100% coverage and no classes are shown
Log Entries: None