I have a build configured that produces unit and integration reports as two
separate exec files. I need to aggregate those so that I can send the
complete results to an online service. I've updated my POM to use the
latest version of the jacoco-maven-plugin so that I can run
the report-aggregate goal. It looks like things are being processed in the
correct order:
[INFO]
[INFO] --- maven-failsafe-plugin:2.17:verify (default) @ vertx-pairtree ---
[INFO] Failsafe report directory:
/home/kevin/Workspace/vertx-pairtree/target/failsafe-reports
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (default-report) @
vertx-pairtree ---
[INFO] Loading execution data file
/home/kevin/Workspace/vertx-pairtree/target/jacoco-ut.exec
[INFO] Analyzed bundle 'Vert.x Pairtree' with 16 classes
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report-integration
(default-report-integration) @ vertx-pairtree ---
[INFO] Loading execution data file
/home/kevin/Workspace/vertx-pairtree/target/jacoco-it.exec
[INFO] Analyzed bundle 'Vert.x Pairtree' with 16 classes
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report-aggregate
(report-aggregate) @ vertx-pairtree ---
[INFO] Loading execution data file
/home/kevin/Workspace/vertx-pairtree/target/jacoco-ut.exec
[INFO] Loading execution data file
/home/kevin/Workspace/vertx-pairtree/target/jacoco-it.exec
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
but the jacoco-aggregate directory ends up with an empty report:
target/site/jacoco:
index.html info.freelibrary.pairtree info.freelibrary.pairtree.fs
info.freelibrary.pairtree.s3 jacoco.csv jacoco-resources
jacoco-sessions.html jacoco.xml
target/site/jacoco-aggregate:
index.html jacoco.csv jacoco-resources jacoco-sessions.html
jacoco.xml
target/site/jacoco-it:
index.html info.freelibrary.pairtree info.freelibrary.pairtree.fs
info.freelibrary.pairtree.s3 jacoco.csv jacoco-resources
jacoco-sessions.html jacoco.xml
My configuration of the plugin uses the defaults and is done in a Maven
profile that is configured to run the integration tests first (the rest of
the plugin executions configuration is done outside of the profile):
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
<goals>
<goal>report-aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
The ouput (above) says it loads the *.exec files but I don't understand why
the report would be essentially empty:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE report PUBLIC "-//JACOCO//DTD Report 1.0//EN" "report.dtd">
<report name="Vert.x Pairtree">
<sessioninfo id="kevin-oryx-19414da7" start="1472048817404"
dump="1472048819240"/>
<sessioninfo id="kevin-oryx-d0d1ee1f" start="1472048820120"
dump="1472048837955"/>
</report>
Anyone have any hints on what might be going wrong?
Thanks,
Kevin
--
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/938d3232-ca3e-475c-990e-82e82f2ea503%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.