-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
89 lines (77 loc) · 1.95 KB
/
build.gradle.kts
File metadata and controls
89 lines (77 loc) · 1.95 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
plugins {
kotlin("jvm") version "2.1.10"
id("jacoco")
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
//Koin
implementation("io.insert-koin:koin-core:4.0.2")
testImplementation(kotlin("test"))
//Test
testImplementation("io.mockk:mockk:1.14.0")
testImplementation("com.google.truth:truth:1.4.4")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.0")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.2")
// MongoDB Kotlin driver dependency
implementation("org.mongodb:mongodb-driver-sync:4.11.1")
// Kotlin coroutine dependency
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}
tasks.test {
useJUnitPlatform()
testLogging {
showStandardStreams = true
}
finalizedBy(tasks.jacocoTestReport)
}
tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required = true
csv.required = true
}
}
//tasks.jacocoTestCoverageVerification {
// dependsOn(tasks.test)
//
// classDirectories.setFrom(
// files(
// fileTree("build/classes/kotlin/main") {
// exclude("**/model/**", "**/di/**")
// }
// )
// )
//
// violationRules {
// rule {
// limit {
// minimum = "0.8".toBigDecimal()
// }
// limit {
// counter = "LINE"
// value = "COVEREDRATIO"
// minimum = "0.8".toBigDecimal()
// }
// limit {
// counter = "BRANCH"
// value = "COVEREDRATIO"
// minimum = "0.8".toBigDecimal()
// }
// limit {
// counter = "METHOD"
// value = "COVEREDRATIO"
// minimum = "0.8".toBigDecimal()
// }
// }
// }
//}
jacoco {
toolVersion = "0.8.13"
}
kotlin {
jvmToolchain(8)
}