Maven surefire test results for a project with various modules

junit, maven, report, surefire

Solution

To create the `aggregate report` please try to use the following command at the`parent project`.

mvn surefire-report:report -Daggregate=true

I hope this may help.

Problem

I've a parent pom project with various submodules. I want to get a report of the unit tests results but using surfire plugin, I get an independent result for each module. I mean, if I execute: ``` mvn surefire-report:report ``` from the parent directory where the parent pom is located, it creates a surefire-report.html for each subproject but what I want, is only one html with the results of all the subprojectes. Is there any way to achieve this automatically? Using surefire or some other plugin.

Original source

Related problems