-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (72 loc) · 2.25 KB
/
build.gradle
File metadata and controls
93 lines (72 loc) · 2.25 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
plugins {
id 'java'
id 'jacoco'
id 'info.solidsoft.pitest' version '1.15.0'
id "io.freefair.lombok" version "8.6"
}
group = 'com.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.28'
annotationProcessor 'org.projectlombok:lombok:1.18.28'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.28'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.17.1'
implementation 'com.h2database:h2:2.2.220'
implementation 'org.postgresql:postgresql:42.6.0'
implementation 'org.apache.kafka:kafka-clients:3.7.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.2'
testImplementation 'org.junit.platform:junit-platform-suite:1.10.3'
testImplementation 'org.mockito:mockito-core:5.3.1'
testImplementation 'org.assertj:assertj-core:3.24.2'
testImplementation 'org.wiremock:wiremock:3.9.1'
testImplementation 'io.cucumber:cucumber-java:7.13.0'
testImplementation 'io.cucumber:cucumber-junit:7.13.0'
testImplementation 'io.cucumber:cucumber-junit-platform-engine:7.13.0'
testImplementation 'org.testcontainers:postgresql:1.18.3'
testImplementation "org.testcontainers:kafka:1.19.8"
testImplementation 'org.awaitility:awaitility:4.2.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.9.2'
}
test {
useJUnitPlatform {
excludeTags 'failing', 'testcontainers'
}
finalizedBy jacocoTestReport
}
task alltests(type: Test) {
useJUnitPlatform()
finalizedBy jacocoTestReport
}
jacocoTestReport {
reports {
xml.required = false
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.9
}
}
}
}
check.dependsOn 'jacocoTestCoverageVerification'
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
pitest {
junit5PluginVersion = '1.2.1'
mutationThreshold = 90
// mutators = ['ALL']
targetClasses = ['com.example.testing.pitest.*']
}
//check.dependsOn 'pitest'