Maven surefire test results for a project with various modules
Asked Answered
R

1

9

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.

Resolute answered 12/4, 2013 at 11:5 Comment(0)
S
23

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.

Succession answered 12/4, 2013 at 11:13 Comment(2)
See also https://mcmap.net/q/890539/-maven-surefire-reporting-plugin-configuration for how to configure this in the POM.Enchantress
Just note that the report will be in /target/site/surefire-report.htmlGummous

© 2022 - 2024 — McMap. All rights reserved.