Some tests need the agent jar loaded as an agent
@@ -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"
}
