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.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue