diff --git a/cliargs.sh b/cliargs.sh deleted file mode 100755 index d5fccfd..0000000 --- a/cliargs.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -java -cp "lib/test/*" org.pitest.mutationtest.commandline.MutationCoverageReport --help |\ -grep "^.*--.*" |\ -sed -e "s/\* --/--/" -e "s/ .*//" -e "s/^--/\"--/" -e "s/$/\",/" |\ -sort |\ -sed -e '/testPlugin/d' -e '/--help/d' -e '/---/d' -e '$s/,//' \ No newline at end of file diff --git a/src/main/java/rife/bld/extension/PitestOperation.java b/src/main/java/rife/bld/extension/PitestOperation.java index 8175f17..f4b737f 100644 --- a/src/main/java/rife/bld/extension/PitestOperation.java +++ b/src/main/java/rife/bld/extension/PitestOperation.java @@ -592,17 +592,6 @@ public class PitestOperation extends AbstractProcessOperation { return this; } - /** - * Maximum number of surviving mutants to allow without throwing an error. - * - * @param maxMutationsPerClass the max number - * @return this operation instance - */ - public PitestOperation maxMutationsPerClass(int maxMutationsPerClass) { - options.put("--maxMutationsPerClass", String.valueOf(maxMutationsPerClass)); - return this; - } - /** * Maximum number of surviving mutants to allow without throwing an error. * diff --git a/src/test/java/rife/bld/extension/PitestOperationTest.java b/src/test/java/rife/bld/extension/PitestOperationTest.java index 63a27f6..caf5655 100644 --- a/src/test/java/rife/bld/extension/PitestOperationTest.java +++ b/src/test/java/rife/bld/extension/PitestOperationTest.java @@ -77,13 +77,12 @@ class PitestOperationTest { "--fullMutationMatrix", "--historyInputLocation", "--historyOutputLocation", + "--includeLaunchClasspath", "--includedGroups", "--includedTestMethods", - "--includeLaunchClasspath", "--inputEncoding", "--jvmArgs", "--jvmPath", - "--maxMutationsPerClass", "--maxSurviving", "--mutableCodePaths", "--mutationEngine", @@ -123,8 +122,8 @@ class PitestOperationTest { .excludedGroups(List.of(FOO, BAR)) .excludedMethods("method") .excludedMethods(List.of(FOO, BAR)) - .excludedRunners("runners") .excludedTestClasses("test") + .excludedRunners("runners") .exportLineCoverage(true) .failWhenNoMutations(true) .features("feature") @@ -137,7 +136,6 @@ class PitestOperationTest { .inputEncoding("encoding") .jvmArgs("-XX:+UnlogregckDiagnosticVMOptions") .jvmPath("path") - .maxMutationsPerClass(3) .maxSurviving(1) .mutableCodePaths("codePaths") .mutationEngine("engine") @@ -458,14 +456,6 @@ class PitestOperationTest { assertThat(op.options.get("--jvmPath")).isEqualTo(FOO); } - @Test - void maxMutationsPerClass() { - var op = new PitestOperation() - .fromProject(new BaseProject()) - .maxMutationsPerClass(12); - assertThat(op.options.get("--maxMutationsPerClass")).isEqualTo("12"); - } - @Test void maxSurviving() { var op = new PitestOperation()