STAMP-project/pitmp-maven-plugin

Combine results of test suites

Cael35 opened this issue · 3 comments

Results focus on a test suite.
It would be useful to combined test results focus on a package, and combining results of all test suites which use the package.

We can use the new report-aggregate mojo available in release 1.3.2.
Documentation is available on pitest.org:
http://pitest.org/aggregating_tests_across_modules

If I specify a <reportsDirectory> in the plugin config, this is not any more a functionality... but a bug : multiple modules can be output in the same directory (if they start in the same minute, they correspond to the same timestamp, used for the directory name), and the index.html is overwritten (the last module wins !).

There is a workaround for the specific problem @gibello is having.
In the root pom.xml file you can configure the <reportsDirectory> as follows:

<configuration>
    <reportsDirectory>
         /path/to/report/${artifactId}
     </reportsDirectory>
     <timestampedReports>false</timestampedReports>
</configuration>

in this way, all report will be generated in /path/to/report/ and then, inside, the report of each module will be stored in a folder named after the module and therefore they will be not overwritten.