Multi module project coverage with microservices

46 views
Skip to first unread message

Sergio Perez

unread,
Mar 26, 2019, 12:57:09 PM3/26/19
to JaCoCo and EclEmma Users

 I’m using Jacoco 0.8.0 + SpringBoot 2.0.5 + JUnit + Maven)


I want to generate a JaCoCo coverage report.

I have two projects, first one is a Java project, consisting of microservices endpoints (REST), and the second one is a project that launches requests to the endpoints from the first project (this project has only test classes).
I can check coverage from each project independently, but I want to check coverage from the endpoints project, using the TEST project (which throws requests to the endpoints).

How can I do it?. I have created a multimodule project, but it doesn.t launch junit tests in each individual project/module (so coverage at each one is 0%)


Thank you.

Marc Hoffmann

unread,
Mar 27, 2019, 10:40:32 AM3/27/19
to jac...@googlegroups.com
Please have a look at report-aggregate goal to create a report over multiple modules:


Regards,
-marc



--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/4d0f88fe-7426-4296-866e-fc31fdbf7d69%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