Maven test results for obtaining a project with various modules

I have a parent pom project with various submodules. I want to get a report on the results of unit tests, but using the surire plugin, I get an independent result for each module.

I mean, if I do:

mvn surefire-report:report 

from the parent directory where the parent pom is located, it creates surefire-report.html for each subproject, but what I want is just one html with the results of all subprojects.

Is there any way to achieve this automatically? Using surefire or another plugin.

+4
source share
1 answer

To create an aggregate report , try using the following command in the parent project .

 mvn surefire-report:report -Daggregate=true 

Hope this helps.

+12
source

All Articles