-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.gradle
More file actions
40 lines (32 loc) · 850 Bytes
/
build.gradle
File metadata and controls
40 lines (32 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
plugins {
id 'java'
id 'info.solidsoft.pitest' version '1.15.0'
}
version = '1.0'
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.mockito:mockito-core:5.20.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.13.4")
testImplementation("org.assertj:assertj-core:3.27.6")
pitest 'org.pitest:pitest-junit5-plugin:1.2.1'
}
pitest {
targetClasses = ['legacycode.*']
targetTests = ['legacycode.*']
useClasspathFile = true
testPlugin = 'junit5'
junit5PluginVersion = '1.2.1'
outputFormats = ['HTML', 'XML', 'CSV']
threads = 4
failWhenNoMutations = false
mutationThreshold = 0
}
tasks.named("pitest") { mustRunAfter(tasks.named("test")) }
tasks.named('test') {
useJUnitPlatform()
}
tasks.register("verifyAll") {
dependsOn("test", "pitest")
}