Hi,
the JaCoCo Maven plug-in creates code coverage for single modules only.
Since quite some time we have a long outstanding feature requests for
this:
https://github.com/jacoco/jacoco/pull/97
As structured reports are supported by Ant, for JaCoCo itself we use the
ant-runner to create the report, see:
https://github.com/jacoco/jacoco/blob/master/org.jacoco.doc/pom.xml#L76
Regards,
-marc
On 2015-07-29 20:33, [email protected] wrote:
Hi,
i am struggling to get code coverage for dependent classes with jacoco
maven plugin.
My project structure is like following:
[workspace]
|-pom.xml
|-[module_1]
|-pom.xml
|-[src]
|-[java]
|-class1
|-[test]
|-class1test
|-[module_2]
|-pom.xml
|-[src]
|-[java]
|-class2
|-[test]
class1 needs class2 from module_2, but when i run the unit test
class1test i get no code coverage for class2.
I googled hours but can't find a solution that works.
Some posts mentioned to use <classDumpDir> to dump the classes and use
them at report generation. Dumping the classes works fine.
But i can't find an example how to use the dumped classes while
generating the report.
I tried to use <include> in the configuration section of report
configuration but this results in an empty report.
Can anyone explain how to use the dumped classes at report generation?
Regards,
Andre
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/14cbe978cbd91c438810b8f6f62aecef%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.