Some tests need the agent jar loaded as an agent

This commit is contained in:
Laplie Anderson 2019-08-05 12:20:19 -04:00
parent ba6ff678db
commit 1a26e73ae8
1 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,11 @@ tasks.withType(Test).configureEach {
// jvmArgs "-Ddatadog.slf4j.simpleLogger.defaultLogLevel=debug"
// jvmArgs "-Dorg.slf4j.simpleLogger.defaultLogLevel=debug"
doFirst {
// Defining here to allow jacoco to be first on the command line.
jvmArgs "-javaagent:${shadowJar.archivePath}"
}
testLogging {
events "started"
}