I have the following setup:
- github repo 1 (https://github.com/xwiki/xwiki-commons)
- github repo 2 (https://github.com/xwiki/xwiki-rendering)
I'd like to have a report that combines all the coverage generated by all tests from all modules (including coverage generated by modules on other modules) for both repos.
So I execute the following:
- on repo1: mvn clean jacoco:prepare-agent install -Djacoco.destFile=/tmp/jacoco.exec -Djacoco.append=false
- on repo2: mvn clean jacoco:prepare-agent install -Djacoco.destFile=/tmp/jacoco.exec -Djacoco.append=true
So this should generate a combined jacoco.exec that contains everything.
However I can't find a way to generate a report out the exec file.
If I run "mvn jacoco:report -Djacoco.destFile=/tmp/jacoco.exec -N" then I get "Skipping JaCoCo execution due to missing execution data file.".
This suggest that I may not be using this properly.
However I can't find a way to do what I want.
Any idea?
PS: Thanks a lot for this great tool!
However the sources are not in the report so I’m not referencing them properly. However I’m not sure how to do that generically for all maven modules (I cannot specify them one by one since I have between 200-300 java modules in total…).
I’m referring to the <sourcefiles> element in:
...
<sourcefiles>
<fileset dir="${commons.directory}">
<include name="**/src/main/java/**/*.*"/>
</fileset>
</sourcefiles>...
Any idea?