Skip to content

Commit 313414f

Browse files
committed
add jacoco
1 parent 1331d22 commit 313414f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

backend/build.gradle.kts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import cz.habarta.typescript.generator.TypeScriptOutputKind
55

66
plugins {
77
java
8+
jacoco
89
alias(libs.plugins.springBoot)
910
alias(libs.plugins.springDependencyManagement)
1011
alias(libs.plugins.typescriptGenerator)
@@ -108,4 +109,12 @@ tasks {
108109
noFileComment = true
109110
mapEnum = EnumMapping.asEnum
110111
}
112+
113+
test {
114+
finalizedBy(jacocoTestReport) // report is always generated after tests run
115+
}
116+
117+
jacocoTestReport {
118+
dependsOn(test) // tests are required to run before generating the report
119+
}
111120
}

0 commit comments

Comments
 (0)