Domanda

I have finally managed to get my builds generate jacoco reports that can be found by both the Jenkins plugin and by Sonar. The problem is that the values they show are different... For the whole code base, Jenkins says 21% lines and 15% branches, while Sonar says 13% and 12%.

From the logs it looks like all exec files are found and the same results should be in both cases.

Is this a known issue or maybe I still didn't get the configuration right? How can I check?

Thanks in advance! /Vlad

È stato utile?

Soluzione

Could it be that Sonar automatically filters out the test classes from the results, while the Jenkins plugin has to be explicitly told to do so? With this change, the numbers are almost the same, so maybe it's just rounding errors. It would be nice to get a confirmation, though.

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