Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven surefire test results for a project with various modules

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.

like image 592
drublik Avatar asked Apr 12 '13 11:04

drublik


People also ask

Where does Maven store test results?

By default, these files are generated at ${basedir}/target/surefire-reports . As such, after the tests are executed, you just need to open those reports in Eclipse by double-clicking them.

What does the surefire reporting plugin generate reports about?

The Surefire Report Plugin parses the generated TEST-*. xml files under ${basedir}/target/surefire-reports and renders them using DOXIA, which creates the web interface version of the test results. New interprocess communication and TCP/IP which fixes current blocker and critical bugs.


1 Answers

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.

like image 99
Charlee Chitsuk Avatar answered Nov 23 '22 12:11

Charlee Chitsuk