Hi,

I have JUnit Tests running with the jacoco java agent on two different 
machines. Let's say 50% of the tests on machine a and 50% of the tests on 
machine b (actually I use Test Load Balancer(TLB) to split the test sets). 
I tried to merge the results (jacoco.exec files) with the ant merge target 
but it fails every time with this exception:

java.lang.IllegalStateException: Incompatible execution data for class .....
 at org.jacoco.core.data.ExecutionData.assertCompatibility(ExecutionData.
java:146)
 at org.jacoco.core.data.ExecutionData.merge(ExecutionData.java:109)
 at org.jacoco.core.data.ExecutionDataStore.put(ExecutionDataStore.java:48)
 at org.jacoco.core.data.ExecutionDataStore.visitClassExecution(
ExecutionDataStore.java:122)
 at org.jacoco.core.data.ExecutionDataReader.readExecutionData(
ExecutionDataReader.java:147)
 at org.jacoco.core.data.ExecutionDataReader.readBlock(ExecutionDataReader.
java:111)
 at org.jacoco.core.data.ExecutionDataReader.read(ExecutionDataReader.java:
85)
 at org.jacoco.ant.MergeTask.loadSourceFiles(MergeTask.java:114)
 at org.jacoco.ant.MergeTask.execute(MergeTask.java:74)
 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
 at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:
106)
 at org.apache.tools.ant.Task.perform(Task.java:348)
 at org.apache.tools.ant.Target.execute(Target.java:390)
 at org.apache.tools.ant.Target.performTasks(Target.java:411)
 at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
 at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
DefaultExecutor.java:41)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
 at org.apache.tools.ant.Main.runBuild(Main.java:801)
 at org.apache.tools.ant.Main.startAnt(Main.java:218)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)


I'm using the latest jacoco-0.7.3.201502191951.zip 
I've read https://github.com/jacoco/jacoco/issues/95 and something of 
'fork="true" 
forkmode="once"' what makes me believe that merging results from different JVM 
instances is not intended to work. Am I right or what am I doing wrong?

Regards
Jörg

-- 
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/715e89c6-435a-47f3-a35c-82f64a5d41a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to