If I set up the <reporting>
section in my pom
as follows, I only get the surefire report, while the pitest report fails because it can't find any input.
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.1.10</version>
<configuration>
<targetClasses>
<param>pricingengine.*</param>
</targetClasses>
<targetTests>
<param>pricingengine.*</param>
</targetTests>
</configuration>
<reportSets>
<reportSet>
<reports>
<report>report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
To obtain the input to the pitest
report so that it outputs to the site reports, I need to do this first:
mvn compile test-compile org.pitest:pitest-maven:mutationCoverage
Do I have to set up each of these in the <build>
section as plugins with executions
bound to the pre-site
phase to get this to happen? Or is there a simpler solution with another plugin I'm not aware of?