Hi,

thanks for sharing your requirements and providing some ideas! JaCoCo does currently not support multi-module reports out of the box. For Maven builds there are just some work arounds like using the Ant plug-in.

Please feel free to add your ideas to the open issue for multi-module reports: https://github.com/jacoco/jacoco/pull/97

On 22.03.14 17:58, [email protected] wrote:
Hi,

I'm trying to the run the report-integration goal from a module that by itself 
does not contain and classes.

Basically my project structure is like this:

trunk
------module-xyz
---------------------src/main/java
---------------------src/test/java
------module-abc
---------------------src/main/java
---------------------src/test/java
------module-integration-tests
---------------------src/test/java


I can see reports getting generated for each module (xyz and abc) by itself.

My requirement is after I run the integration tests from the integration test 
module, I should be able to generate a coverage report.

Right now this fails as I don't have any classes in the integration-tests 
module. The error says, skipping jacoco:report-integration as there are no 
classes in target.

I was looking at the plugin API to see if I can point the classes to the other 
module's target folders. But it doesn't look like there is one.

Right now I have used the ANT task to generate report by specifying the source 
folders and the location of the exec file. I was wondering if this is the only 
way this can be done currently?

It would be great if the maven task can accept a list of src/classes folders 
for the jacoco exec file its generating the report for.

Any help would be appreciated!

Thanks in advance,


--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to