Skip to content

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

@kyleryxn

Description

@kyleryxn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions