Compare commits
No commits in common. "e7ed7edc3080080438895809810ece3bb85ba615" and "b6995b05a25db6c0ab13c11f5335f9732de93224" have entirely different histories.
e7ed7edc30
...
b6995b05a2
3 changed files with 2 additions and 30 deletions
|
@ -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/,//'
|
|
|
@ -592,17 +592,6 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
||||||
return this;
|
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.
|
* Maximum number of surviving mutants to allow without throwing an error.
|
||||||
*
|
*
|
||||||
|
|
|
@ -77,13 +77,12 @@ class PitestOperationTest {
|
||||||
"--fullMutationMatrix",
|
"--fullMutationMatrix",
|
||||||
"--historyInputLocation",
|
"--historyInputLocation",
|
||||||
"--historyOutputLocation",
|
"--historyOutputLocation",
|
||||||
|
"--includeLaunchClasspath",
|
||||||
"--includedGroups",
|
"--includedGroups",
|
||||||
"--includedTestMethods",
|
"--includedTestMethods",
|
||||||
"--includeLaunchClasspath",
|
|
||||||
"--inputEncoding",
|
"--inputEncoding",
|
||||||
"--jvmArgs",
|
"--jvmArgs",
|
||||||
"--jvmPath",
|
"--jvmPath",
|
||||||
"--maxMutationsPerClass",
|
|
||||||
"--maxSurviving",
|
"--maxSurviving",
|
||||||
"--mutableCodePaths",
|
"--mutableCodePaths",
|
||||||
"--mutationEngine",
|
"--mutationEngine",
|
||||||
|
@ -123,8 +122,8 @@ class PitestOperationTest {
|
||||||
.excludedGroups(List.of(FOO, BAR))
|
.excludedGroups(List.of(FOO, BAR))
|
||||||
.excludedMethods("method")
|
.excludedMethods("method")
|
||||||
.excludedMethods(List.of(FOO, BAR))
|
.excludedMethods(List.of(FOO, BAR))
|
||||||
.excludedRunners("runners")
|
|
||||||
.excludedTestClasses("test")
|
.excludedTestClasses("test")
|
||||||
|
.excludedRunners("runners")
|
||||||
.exportLineCoverage(true)
|
.exportLineCoverage(true)
|
||||||
.failWhenNoMutations(true)
|
.failWhenNoMutations(true)
|
||||||
.features("feature")
|
.features("feature")
|
||||||
|
@ -137,7 +136,6 @@ class PitestOperationTest {
|
||||||
.inputEncoding("encoding")
|
.inputEncoding("encoding")
|
||||||
.jvmArgs("-XX:+UnlogregckDiagnosticVMOptions")
|
.jvmArgs("-XX:+UnlogregckDiagnosticVMOptions")
|
||||||
.jvmPath("path")
|
.jvmPath("path")
|
||||||
.maxMutationsPerClass(3)
|
|
||||||
.maxSurviving(1)
|
.maxSurviving(1)
|
||||||
.mutableCodePaths("codePaths")
|
.mutableCodePaths("codePaths")
|
||||||
.mutationEngine("engine")
|
.mutationEngine("engine")
|
||||||
|
@ -458,14 +456,6 @@ class PitestOperationTest {
|
||||||
assertThat(op.options.get("--jvmPath")).isEqualTo(FOO);
|
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
|
@Test
|
||||||
void maxSurviving() {
|
void maxSurviving() {
|
||||||
var op = new PitestOperation()
|
var op = new PitestOperation()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue