diff --git a/build.gradle b/build.gradle index ce842c0..63e1b99 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'org.jetbrains.kotlin.jvm' version '1.5.10' id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.10' + id 'jacoco' } group 'org.wulkanat' @@ -53,4 +54,11 @@ task fatJar(type: Jar) { } } +test { + finalizedBy jacocoTestReport // report is always generated after tests run +} +jacocoTestReport { + dependsOn test // tests are required to run before generating the report +} + apply plugin: 'kotlinx-serialization'