-
Notifications
You must be signed in to change notification settings - Fork 47
/
TasksOrderingTests.kt
54 lines (50 loc) · 1.53 KB
/
TasksOrderingTests.kt
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
package kotlinx.kover.test.functional.cases
import kotlinx.kover.test.functional.cases.utils.*
import kotlinx.kover.test.functional.core.*
import kotlinx.kover.test.functional.core.BaseGradleScriptTest
import kotlin.test.*
internal class TasksOrderingTests : BaseGradleScriptTest() {
@Test
fun testProjectTasks() {
val build = diverseBuild()
build.addKoverRootProject {
sourcesFrom("simple")
kover {
verify {
rule {
bound {
minValue = 100
}
}
}
}
}
val runner = build.prepare()
runner.runWithError("koverVerify", "koverReport") {
// reports should be generated even if verification failed with an error
checkDefaultReports()
}
}
@Test
fun testMergedTasks() {
val build = diverseBuild()
build.addKoverRootProject {
sourcesFrom("simple")
koverMerged {
enable()
verify {
rule {
bound {
minValue = 100
}
}
}
}
}
val runner = build.prepare()
runner.runWithError("koverMergedVerify", "koverMergedReport") {
// reports should be generated even if verification failed with an error
checkDefaultMergedReports()
}
}
}