Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to execute goal org.pitest:pitest-maven:1.14.2:mutationCoverage #60

Open
kyleryxn opened this issue Jun 28, 2023 · 0 comments
Open

Comments

@kyleryxn
Copy link

I'm trying to run Pitest in my project, but keep receiving this error:

Failed to execute goal org.pitest:pitest-maven:1.14.2:mutationCoverage (default-cli) on project image-finder: Execution default-cli of goal org.pitest:pitest-maven:1.14.2:mutationCoverage failed: No mutations found. This probably means there is an issue with either the supplied classpath or filters.

I'm trying to run Pitest from the command line using: mvn clean org.pitest:pitest-maven:mutationCoverage

I've tried:

  • Setting targetClasses and targetTests
    • Using , , for each to specify the target classes and test classes
    • Specified classes as such: com.package.examples.* for non-test classes
    • Specified test classes as both: com.package.examples.Test and com.package.examples.
  • Not setting targetClasses and targetTests
  • Updating Maven surefire plugin to the latest version
  • Not setting any configurations for Pitest in my pom.xml

I'm using Junit 5 and have included the necessary JUnit 5 dependency for Pitest. I don't know what else to do to fix this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant