我尝试运行“ mvn clean测试”以获取测试的突变范围,但找不到任何东西。我使用了许多不同的设置,但是找不到解决方案。我的设置可能会出错吗?
Pom.xml
<build>
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.4.5</version>
<executions>
<execution>
<id>pitest-mutation-coverage</id>
<phase>test</phase>
<goals>
<goal>mutationCoverage</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>0.8</version>
</dependency>
</dependencies>
<configuration>
<targetClasses>
<param>at.my.swtesting.*</param>
</targetClasses>
<targetTests>
<param>at.my.swtesting.*</param>
</targetTests>
</configuration>
</plugin>
</plugins>
</build>
重要日志消息:
08:14:47 PIT >> INFO : Verbose logging is disabled. If you encounter a problem, please enable it before reporting an issue.
08:14:47 PIT >> INFO : Sending 4 test classes to minion
08:14:47 PIT >> INFO : Sent tests to minion
08:14:47 PIT >> INFO : MINION : 08:14:47 PIT >> INFO : Checking environment
08:14:48 PIT >> INFO : MINION : 08:14:48 PIT >> INFO : Found 0 tests
08:14:48 PIT >> INFO : MINION : 08:14:48 PIT >> INFO : Dependency analysis reduced number of potential tests by 0
08:14:48 PIT >> INFO : MINION : 08:14:48 PIT >> INFO : 0 tests received
08:14:48 PIT >> INFO : Calculated coverage in 0 seconds.
08:14:48 PIT >> INFO : Created 0 mutation test units
[ERROR] Failed to execute goal org.pitest:pitest-maven:1.4.5:mutationCoverage (pitest-mutation-coverage) on project exercise01-assignment01: Execution pitest-mutation-coverage of goal org.pitest:pitest-maven:1.4.5:mutationCoverage failed: No mutations found. This probably means there is an issue with either the supplied classpath or filters.