Added dry run option
This commit is contained in:
parent
2412c525dd
commit
6243355364
3 changed files with 19 additions and 0 deletions
|
@ -283,6 +283,23 @@ public class PitestOperation extends AbstractProcessOperation<PitestOperation> {
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to run in dry run mode.
|
||||
* <p>
|
||||
* Defaults to {@code false}
|
||||
*
|
||||
* @param isDryRun {@code true} or {@code false}
|
||||
* @return this operation instance
|
||||
*/
|
||||
public PitestOperation dryRun(boolean isDryRun) {
|
||||
if (isDryRun) {
|
||||
options_.put("--dryRun", TRUE);
|
||||
} else {
|
||||
options_.put("--dryRun", FALSE);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* List of globs to match against class names. Matching classes will be excluded from mutation.
|
||||
*
|
||||
|
|
|
@ -77,6 +77,7 @@ class PitestOperationTest {
|
|||
.classPathFile(FOO)
|
||||
.coverageThreshold(0)
|
||||
.detectInlinedCode(false)
|
||||
.dryRun(false)
|
||||
.excludedClasses("class")
|
||||
.excludedClasses(List.of(FOO, BAR))
|
||||
.excludedGroups("group")
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
--classPathFile
|
||||
--coverageThreshold
|
||||
--detectInlinedCode
|
||||
--dryRun
|
||||
--excludedClasses
|
||||
--excludedGroups
|
||||
--excludedMethods
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue