Питест не может найти мутации - PullRequest
1 голос
/ 31 марта 2019

Я пытаюсь запустить "mvn clean test", чтобы получить покрытие мутации моего теста, но ничего не удается найти. Я использовал много разных настроек, но не могу найти решение. Могут ли мои настройки быть неправильными?

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