[
https://jira.codehaus.org/browse/MCOBERTURA-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=285898#comment-285898
]
Neil Ingle commented on MCOBERTURA-65:
--------------------------------------
I have not got either patch (2.5-SNAPSHOT or 2.5.1) to work in the way that I
understood they would - that of collecting and consolidating coverage
statistics across modules, so that if you have a test in module A which
exercises classes in modules B and C, then the consolidated report would show
classes in all three modules A, B, and C.
Currently the reports either only display classes in the same module, or
display classes from other modules with 0% coverage. I accept that you can't
expect to cover library classes - but these are Maven modules (as well as
libraries), which are treated as 'siblings' under the umbrella of a
multi-module POM project.
Maybe what is required is to produce a consolidated instrumented SER file
(which does seem to happen - "consolidate-cobertura.ser" is created in the
target directory of the parent project) and then drive all coverage from that,
rather than individual sub-module SER files. It looks as if both patches are
just running tests and generating coverage inside modules, and then
consolidating.
> Cobertura should aggregate results of multi-module builds
> ---------------------------------------------------------
>
> Key: MCOBERTURA-65
> URL: https://jira.codehaus.org/browse/MCOBERTURA-65
> Project: Maven 2.x Cobertura Plugin
> Issue Type: Improvement
> Environment: Windows
> Reporter: David Hoffer
> Assignee: Benson Margulies
> Fix For: 2.5
>
> Attachments: cobertura_aggregate.diff, MCOBERTURA-65.patch
>
>
> When I run a cobertura report on parent pom project that has child modules I
> only get reports generated for each module, I also want to see a combined
> report in the parent.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email