Combined results for Maven surefire and failsafe?

24 views
Skip to first unread message

Mike Duigou

unread,
Mar 22, 2018, 3:01:02 PM3/22/18
to JaCoCo and EclEmma Users
First off: Thank you for an excellent tool and the ongoing support you've been doing. We have been using jacoco since 0.7.2 and it have been extremely reliable and useful for us. Timely support of new JDK releases is definitely appreciated!

Our build environment includes both unit and integration tests which are run by Maven Surefire and Failsafe plugins respectively. Unfortunately I have been unsuccessful producing a code coverage report that includes the results of both types of tests. The default jacoco maven plugin recipe is geared towards unit tests. I was able to figure out a way to switch reporting to the integration tests by forcing the filename of the jacoco output but I haven't been able to come up with a recipe for producing a combined report.

Is it possible? Should perhaps combined reports be the default with split reports for unit and integration tests being an option?

Thanks,

Mike

Mirko Friedenhagen

unread,
Mar 22, 2018, 3:21:55 PM3/22/18
to jac...@googlegroups.com
Hello Mike,

if you only configure the goals "prepare-agent" and "report" as executions the coverage should be automatically measured for tests run by surefire and failsafe combined.

Just *do not* define executions for prepare-agent-integration resp. report-integration.

Could you show the configuration of the jacoco-maven-plugin?

Best regards
Mirko
--
Sent from my mobile


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/0d915fe7-0dfd-4ce2-819a-b62605e437c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages