I have a list of projects I'd like to measure code coverage for and they all share the same parent pom (super-pom). When running mvn cobertura:cobertura each individual project gets its own target/site/cobertura/index.html with nice coverage reports, however, for the parent pom I see the file index.html created, but it's empty. What I'd like to see in this file is the aggregate data of all child process. Can this be done?
And another issue: I know it's not polite, but in my company sometimes code from project A is covered by tests not only in A but also in project B, where B depends on A. My understanding is that coverage for A is only measured by tests run in project A, but not by tests run in project B. Is this correct? How can I add the coverage added by B to A's count? Thanks
