Compare commits
4 commits
11bdafa259
...
9ed731e936
Author | SHA1 | Date | |
---|---|---|---|
9ed731e936 | |||
6243355364 | |||
2412c525dd | |||
4a4fa2fb83 |
7 changed files with 29 additions and 10 deletions
|
@ -40,8 +40,8 @@ Don't forget to add the Pitest `test` dependencies to your build file, as they a
|
|||
```java
|
||||
repositories = List.of(MAVEN_CENTRAL);
|
||||
scope(test)
|
||||
.include(dependency("org.pitest", "pitest", version(1, 17, 2)))
|
||||
.include(dependency("org.pitest", "pitest-command-line", version(1, 17, 2)))
|
||||
.include(dependency("org.pitest", "pitest", version(1, 17, 3)))
|
||||
.include(dependency("org.pitest", "pitest-command-line", version(1, 17, 3)))
|
||||
.include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 1)))
|
||||
.include(dependency("org.pitest", "pitest-testng-plugin", version(1, 0, 0)));
|
||||
```
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
bld.downloadExtensionJavadoc=false
|
||||
bld.downloadExtensionSources=true
|
||||
bld.downloadLocation=
|
||||
bld.extension-pitest=com.uwyn.rife2:bld-pitest:1.0.4
|
||||
bld.extension-pitest=com.uwyn.rife2:bld-pitest:1.0.5
|
||||
bld.repositories=MAVEN_CENTRAL,RIFE2_RELEASES,MAVEN_LOCAL,RIFE2_SNAPSHOTS
|
||||
bld.sourceDirectories=
|
||||
bld.version=2.1.0
|
||||
|
|
|
@ -26,13 +26,13 @@ public class ExamplesBuild extends Project {
|
|||
|
||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||
|
||||
var pitest = version(1, 17, 2);
|
||||
var pitest = version(1, 17, 3);
|
||||
scope(test)
|
||||
.include(dependency("org.pitest", "pitest", pitest))
|
||||
.include(dependency("org.pitest", "pitest-command-line", pitest))
|
||||
.include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 1)))
|
||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 3)))
|
||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 3)));
|
||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 4)))
|
||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 4)));
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
|
|
@ -38,7 +38,7 @@ public class PitestOperationBuild extends Project {
|
|||
public PitestOperationBuild() {
|
||||
pkg = "rife.bld.extension";
|
||||
name = "PitestExtension";
|
||||
version = version(1, 0, 4);
|
||||
version = version(1, 0, 5);
|
||||
|
||||
javaRelease = 17;
|
||||
|
||||
|
@ -47,15 +47,15 @@ public class PitestOperationBuild extends Project {
|
|||
|
||||
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, RIFE2_RELEASES, RIFE2_SNAPSHOTS);
|
||||
|
||||
var pitest = version(1, 17, 2);
|
||||
var pitest = version(1, 17, 3);
|
||||
scope(compile)
|
||||
.include(dependency("com.uwyn.rife2", "bld", version(2, 1, 0)));
|
||||
scope(test)
|
||||
.include(dependency("org.pitest", "pitest", pitest))
|
||||
.include(dependency("org.pitest", "pitest-command-line", pitest))
|
||||
.include(dependency("org.pitest", "pitest-junit5-plugin", version(1, 2, 1)))
|
||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 3)))
|
||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 3)))
|
||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 11, 4)))
|
||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 11, 4)))
|
||||
.include(dependency("org.assertj", "assertj-core", version(3, 26, 3)));
|
||||
|
||||
javadocOperation()
|
||||
|
|
|
@ -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