Migrate ciTest to "Task Configuration Avoidance"

This commit is contained in:
tzugen 2021-05-06 20:17:32 +02:00
parent af304cd10f
commit 8a2d100e96
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 5 additions and 6 deletions

View File

@ -10,9 +10,6 @@ sourceSets {
test.resources.srcDirs += "${projectDir}/src/integrationTest/resources"
}
test {
useJUnitPlatform()
}
dependencies {
api other.kotlinStdlib
@ -44,15 +41,17 @@ jacocoTestReport {
}
}
test.finalizedBy jacocoTestReport
test {
tasks.named("test").configure {
useJUnitPlatform()
jacoco {
excludes += jacocoExclude
includeNoLocationClasses = true
}
finalizedBy jacocoTestReport
}
tasks.create(name: "ciTest", dependsOn: "test") {
tasks.register("ciTest") {
dependsOn test
group = "Verification"
description = "Special task for CI that calls all tests in pure kotlin modules"
}