[
https://jira.codehaus.org/browse/MCOBERTURA-65?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=286002#comment-286002
]
James Ahlborn commented on MCOBERTURA-65:
-----------------------------------------
@Neil - you are correct. your desired behavior is actually a harder problem.
it's not a matter of just having a consolidated ser file, it's a matter of
running your tests for module A using instrumented classes for A,B, and C.
currently, the instrumented classes only live inside the target directory of
the sub-module. however, maven, i believe, actually pulls the other sub-module
classes from your local repository (e.g. when you are running tests for A, the
classes for B and C are coming from your repository). so you essentially need
to temporarily deploy the instrumented classes for B and C to your local
repository (and presumably overwrite them when you are done). there _may_ be a
way to use some serious maven magic to add the instrumented sub-module classes
from B's and C's target directory to A's classpath on the fly during test
execution, but that's way beyond my maven plugin knowledge.
> 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