Domanda

I've a small project where the main code is wrote in java but the tests are mostly groovy code. If i use JaCoCo for code coverage (called by Sonar), the code coverage is not done on my java code, as it seems JaCoCo does not use its special classloader when loading the java classes with groovy. Strangely, I remember it worked before (before sonar version 2.12 which embed JaCoCo).

Does anyone know how to fix it ?

È stato utile?

Soluzione

My mistake: forgot to add the integration-test maven profile to the sonar configuration in jenkins.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top