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.

有帮助吗?

解决方案

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

mvn surefire-report:report -Daggregate=true

I hope this may help.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top