I'm trying to generate an aggregate report for
https://github.com/assertj/assertj which has the following module structure:
AssertJ
├── assertj-core
├── assertj-guava
├── assertj-parent
└── assertj-tests
├── assertj-integration-tests
│ ├── assertj-core-groovy
│ ├── assertj-core-tests
│ ├── assertj-guava-tests
│ └── ...
└── assertj-performance-tests
The integration tests are two levels down from the modules that they
reference. I'm trying to solve this on a smaller scale by playing around
with this project from the reference:
https://github.com/jacoco/jacoco/tree/master/jacoco-maven-plugin.test/it/it-report-aggregate.
My fork has the structure
it-report-aggregate
├── a-core
└── a-tests
└── integration-tests
└── a-core-tests
When I add a top level report module and directly reference a-core-tests in
the pom.xml
<https://github.com/timo-a/jacoco/blob/81342b927666623915cd9c2cdd724248e99ea1de/jacoco-maven-plugin.test/it/it-report-aggregate/report/pom.xml>and
execute
cd jacoco-maven-plugin.test/it/it-report-aggregate
mvn clean verify
a report is generated at report/target/site/jacoco-aggregate/index.html.
But it feels wrong to explicitly list the test subsubmodules (which in the
target project are many) outside of a-tests. So I would like a-tests to
create its own "sub report" and then aggregate that sub report along with
the other top level reports.
I've pushed my attempt at this to debug/recursive-reporting
<https://github.com/timo-a/jacoco/tree/debug/recursive-reporting/jacoco-maven-plugin.test/it/it-report-aggregate>.
The module structure is:
it-report-aggregate
├── a-core
├── a-tests
│ └── integration-tests
│ ├── a-core-tests
│ ├── ...
│ └── test-report
└── report
where report depends on a-core and test-report, and test-report depends on
all the modules in integration-tests.
But when I execute mvn clean verify (-pl a-tests/integration-tests) there,
no sub report is generated (much less aggregated). Actually, cd
a-tests/integration-tests; mvn
clean verify does generate a report, but it is empty (Missed Instructions:
0 of 0).
Is it possible to aggregate aggregated reports? How would I do that?
--
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 visit
https://groups.google.com/d/msgid/jacoco/20927677-a67c-411a-9ad3-f7524a40e697n%40googlegroups.com.