Skip to content

Allow to ignoring the maven skipTests flag #1420

@sleberrigaud

Description

@sleberrigaud

I would like to be able to run a command like the following mvn <goal> org.pitest:pitest-maven:mutationCoverage -DskipTests

I need (or want) to use skipTests because otherwise my goal would run the tests, but I don't want to waste cycles running tests twice, as pitest will run them anyway for me. And right now running this command would skip both running the tests and pitest.

So I would like to introduce another flag, say pitestIgnoreSkipTests, that when enable would ignore the skipTests flag. So running mvn <goal> org.pitest:pitest-maven:mutationCoverage -DskipTests -DpitestIgnoreSkipTests would:

  • skip the tests running <goal> but
  • not skip pitest

I know that this is not necessarily ideal, and might ago against some of maven's philosophy, but unfortunately not all project can follow strictly the rules, nor is it easy to fix projects with "history".

PS: I'm happy to create a PR for this and I'll look into doing so if that sounds like something reasonable.

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