More Maven goals for easier invocation of integration-tests

107 views
Skip to first unread message

Mirko Friedenhagen

unread,
Oct 15, 2013, 3:07:10 PM10/15/13
to jac...@googlegroups.com
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/

Mirko Friedenhagen

unread,
Oct 18, 2013, 3:48:27 PM10/18/13
to jac...@googlegroups.com
Hello,

nobody got any thoughts on this :-)?

Regards
Mirko

Henrik Horneber

unread,
Oct 19, 2013, 4:06:07 PM10/19/13
to jac...@googlegroups.com

Hi,
For what it's worth, I like it.

Regards,
Henrik

--
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 jacoco+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mirko Friedenhagen

unread,
Nov 1, 2013, 3:51:18 PM11/1/13
to jac...@googlegroups.com
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages