Some tests need the agent jar loaded as an agent
MODIFY
dd-java-agent/dd-java-agent.gradle
dd-java-agent/dd-java-agent.gradle
@@ -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"
}

Some tests need the agent jar loaded as an agent