mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-07 23:38:42 +01:00
Migrate ciTest to "Task Configuration Avoidance"
This commit is contained in:
parent
af304cd10f
commit
8a2d100e96
@ -10,9 +10,6 @@ sourceSets {
|
|||||||
test.resources.srcDirs += "${projectDir}/src/integrationTest/resources"
|
test.resources.srcDirs += "${projectDir}/src/integrationTest/resources"
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
|
||||||
useJUnitPlatform()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api other.kotlinStdlib
|
api other.kotlinStdlib
|
||||||
@ -44,15 +41,17 @@ jacocoTestReport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test.finalizedBy jacocoTestReport
|
tasks.named("test").configure {
|
||||||
test {
|
useJUnitPlatform()
|
||||||
jacoco {
|
jacoco {
|
||||||
excludes += jacocoExclude
|
excludes += jacocoExclude
|
||||||
includeNoLocationClasses = true
|
includeNoLocationClasses = true
|
||||||
}
|
}
|
||||||
|
finalizedBy jacocoTestReport
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.create(name: "ciTest", dependsOn: "test") {
|
tasks.register("ciTest") {
|
||||||
|
dependsOn test
|
||||||
group = "Verification"
|
group = "Verification"
|
||||||
description = "Special task for CI that calls all tests in pure kotlin modules"
|
description = "Special task for CI that calls all tests in pure kotlin modules"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user