arobirosa / areco-deployment-script-manager

Simple but powerful Patch system for SAP Commerce Cloud (hybris)
Apache License 2.0
12 stars 5 forks source link

Measure Coverage with JaCoCo #2

Closed arobirosa closed 1 year ago

arobirosa commented 4 years ago

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

arobirosa commented 4 years 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.

arobirosa commented 1 year ago

Sonarcloud don't have a free plan for open-source projects and I don't have a server to host a sonarqube.

fibsifan commented 1 year ago

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?

arobirosa commented 1 year ago

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!

arobirosa commented 1 year ago

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.