pitmp-maven-plugin icon indicating copy to clipboard operation
pitmp-maven-plugin copied to clipboard

Combine results of test suites

Open Cael35 opened this issue 7 years ago • 3 comments
trafficstars

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.

Cael35 avatar Dec 09 '17 14:12 Cael35

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

Cael35 avatar Apr 12 '18 09:04 Cael35

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 !).

gibello avatar Sep 27 '19 17:09 gibello

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.

oscarlvp avatar Oct 08 '19 11:10 oscarlvp