Hello everyone :)
We currently have Sonar + JaCoCo Maven Plugin (0.7.9) installed to get code coverage metrics on our services. Our Unit tests all run on the Jenkins server and this is where the code coverage report is produced and analysed. After the services are built on the Jenkins server, they are then deployed on a test dedicated server.
End to End tests that are executed by other teams run on the aforementioned test server. These tests end up hitting our services.
Using JaCoCo, would it be possible to get code coverage stats from these E2E tests that use our services?
I have read the following guides related to the JaCoCo remote agent;
If I understood correctly, the remote agent will need to be loaded in the JVM (on our test server in this case) and the services executing the tests (run by other teams) will need to have JaCoCo plugin settings included in the POM file. Is this assumption correct?
I hope my explanation was clear. I hope someone can help me patch the gaps in my knowledge there!
Thanks
Majd