Skip to content

Commit d32293d

Browse files
fix: guava test discovery
1 parent 386ae9b commit d32293d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dd-java-agent/instrumentation/guava-10.0/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,10 @@ dependencies {
2424

2525
latestDepTestImplementation group: 'com.google.guava', name: 'guava', version: '+'
2626
}
27+
28+
// Exclude helper class from test execution to avoid JUnit 5.14+ discovering it as test
29+
tasks.withType(Test).configureEach {
30+
filter {
31+
excludeTestsMatching 'annotatedsample.GuavaTracedMethods*'
32+
}
33+
}

0 commit comments

Comments
 (0)