Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 5bd073e

Browse files
committed
jacoco周りを追加
1 parent e8b7d06 commit 5bd073e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
id("org.jetbrains.kotlin.jvm") version "1.3.72"
55
// その他補助系
66
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
7+
id("jacoco")
78
id("com.github.ben-manes.versions") version "0.28.0"
89
}
910

@@ -60,5 +61,15 @@ tasks {
6061
}
6162
test {
6263
useJUnitPlatform()
64+
// テスト終了時にjacocoのレポートを生成する
65+
finalizedBy(jacocoTestReport)
66+
}
67+
68+
jacocoTestReport {
69+
reports {
70+
xml.isEnabled = true
71+
csv.isEnabled = false
72+
html.isEnabled = true
73+
}
6374
}
6475
}

0 commit comments

Comments
 (0)