Hello,
I was thinking about adding more Maven goals (already made a pull
request at
https://github.com/jacoco/jacoco/pull/105).
The idea is this:
1. add a goal prepare-agent-integration (bound to phase pre-integration-test)
This would change destFile to ${project.build.directory}/jacoco-it.exec
2. add a goal report-integration
This one would use the above mentioned destFile to generate coverage.
Why?
Adding the following goals to execution:
<goal>prepare-agent</goal>
<goal>prepare-agent-integration</goal>
<goal>report</goal>
<goal>report-integration</goal>
would record surefire test results in jacoco.exec, failsafe test
results in jacoco-it.exec
and create two reports, one for surefire and one for failsafe. No
hassel with configuration of multiple executions anymore.
When neither prepare-agent-integration nor report-integration are
invoked this would be backwards compatible and just record and report
the combined results of surefire and failsafe.
What do you think?
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/