Hi,

aggregate-report "Creates a structured code coverage report (HTML, XML, and CSV) from multiple projects within reactor." In particular the project itself is not contained in the report (http://www.eclemma.org/jacoco/trunk/doc/report-aggregate-mojo.html)

If I understand you correctly you want to combine different test runs within the same project, right? Please check our merge goal for this case.

Regards,
-marc

On 2016-08-24 16:36, Kevin S. Clarke wrote:
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
[1].
For more options, visit https://groups.google.com/d/optout.


Links:
------
[1]
https://groups.google.com/d/msgid/jacoco/938d3232-ca3e-475c-990e-82e82f2ea503%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/7e5e2ade112d8b11c943ae6cdea7bbfd%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to