[build] Fix issue with test agent resolution order
This commit is contained in:
@@ -54,11 +54,14 @@ tasks.compileTestJava {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tasks.test {
|
tasks.test {
|
||||||
|
val testAgentFiles = testAgentClasspath.map { it.files }
|
||||||
|
doFirst {
|
||||||
|
jvmArgs(testAgentFiles.get().map { file -> "-javaagent:${file.absolutePath}" })
|
||||||
|
}
|
||||||
dependsOn(testAgentClasspath)
|
dependsOn(testAgentClasspath)
|
||||||
finalizedBy(tasks.jacocoTestReport)
|
finalizedBy(tasks.jacocoTestReport)
|
||||||
|
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
jvmArgs(testAgentClasspath.get().files.map { file -> "-javaagent:${file.absolutePath}" })
|
|
||||||
systemProperties(
|
systemProperties(
|
||||||
"junit.jupiter.execution.timeout.mode" to "disabled_on_debug",
|
"junit.jupiter.execution.timeout.mode" to "disabled_on_debug",
|
||||||
"junit.jupiter.execution.timeout.testable.method.default" to "10s",
|
"junit.jupiter.execution.timeout.testable.method.default" to "10s",
|
||||||
|
|||||||
Reference in New Issue
Block a user