pitest icon indicating copy to clipboard operation
pitest copied to clipboard

Report aggregate no lineCoverageFiles have been set

Open curb1983 opened this issue 4 years ago • 4 comments

I'm creating a small example application. I'm getting a no lineCoverageFiles have been set error when executing the report-aggregate goal.

I'm using PITMP 1.3.7 to run pit and PITEST 1.4.10 to generate the aggregate report. I'm using Maven 3.6.3

I have a parent Maven module and 3 sub modules:

  • submodule-A
  • submodule-B
  • submodule-reporting

linecoverage.xml and mutations.xml files are generated in target/pit-reports of both submodule A and B. I'm running the report-aggregate goal in the submodule-reporting module

This is the PITMP setup in my parent POM:

 <plugin>
     <groupId>eu.stamp-project</groupId>
     <artifactId>pitmp-maven-plugin</artifactId>
     <version>${pitmp.version}</version>
     <executions>
          <execution>
               <id>pitmp-report</id>
               <phase>test</phase>
               <goals>
                   <goal>run</goal>
               </goals>
           </execution>
       </executions>
       <configuration>
            <targetClasses>
                    <param>be.vdab.qa.mutation.testing.*</param>
            </targetClasses>
            <timestampedReports>false</timestampedReports>
            <exportLineCoverage>true</exportLineCoverage>
            <outputFormats>
                   <param>XML</param>
             </outputFormats>
      </configuration>
</plugin>

This is the dependencies section of submodule-reporting POM:

<dependencies>
        <dependency>
            <groupId>be.vdab.testing</groupId>
            <artifactId>submodule-A</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
        <dependency>
            <groupId>be.vdab.testing</groupId>
            <artifactId>submodule-B</artifactId>
            <version>1.0-SNAPSHOT</version>
        </dependency>
</dependencies>

And the build section of submodule-reporting POM:

build>
   <plugins>
         <plugin>
              <groupId>org.pitest</groupId>
              <artifactId>pitest-maven</artifactId>
              <version>1.4.10</version>
                  <executions>
                    <execution>
                        <id>report</id>
                        <goals>
                            <goal>report-aggregate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
</build>

curb1983 avatar Feb 28 '20 15:02 curb1983

I'm facing the same issue. Any news on that ?

davidlinse avatar Sep 08 '21 20:09 davidlinse

And one year later another random internet stranger (me) got stuck on the same place.

Delawen avatar Sep 02 '22 14:09 Delawen