Hi Phil, are you moving exec files between builds and/or machines? Please note that JaCoCo requires the exact same class files at execution and analysis time. See our documentation for background information:
https://www.jacoco.org/jacoco/trunk/doc/classids.html <https://www.jacoco.org/jacoco/trunk/doc/classids.html> Regards, -marc > On 10. Jan 2020, at 18:16, smitp33 via JaCoCo and EclEmma Users > <[email protected]> wrote: > > Hi, > > We have noticed that a *.exec file generated on windows / mac are producing > reports with very different coverage numbers. > > On windows the *.exec file is showing 90% whilst on mac it is showing 84%. If > we take the *.exec file from the mac machine and put it onto the windows > machine and then generate the report again from this file it shows 91% - so > closer, but still not a match. > > Wondering what we can do to try and investigate this further? > > If it helps at all we are running multiple test tasks that we are then trying > to combine into an aggregate report ... > > val jacocoReportLocations = fileTree("/build/jacoco") { include("*.exec") } > jacocoReportLocations.files.forEach { > println(it) > } > > val jacocoTestReport by getting(JacocoReport::class) { > executionData(jacocoReportLocations) > reports { > xml.isEnabled = true > } > afterEvaluate { > classDirectories.setFrom(files(classDirectories.files.map { > fileTree(it) { > exclude(coverageExclusions) > } > })) > } > } > > > and the dir that sources the files has the following in it ... > > ..\build\jacoco\contractTest.exec > ..\build\jacoco\integrationTest.exec > ..\build\jacoco\test.exec > > Thanks in advance, > > Phil. > > -- > You received this message because you are subscribed to the Google Groups > "JaCoCo and EclEmma Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jacoco/8da52cc5-d650-4bf9-b392-27c0c8e50d9d%40googlegroups.com > > <https://groups.google.com/d/msgid/jacoco/8da52cc5-d650-4bf9-b392-27c0c8e50d9d%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/02056E8B-3887-4E1D-8171-9279435CCC07%40mountainminds.com.
