forked from DataDog/dd-trace-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting.gradle
More file actions
55 lines (46 loc) · 1.89 KB
/
testing.gradle
File metadata and controls
55 lines (46 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ext {
// need access to sun.misc package
skipSettingCompilerRelease = true
}
apply from: "$rootDir/gradle/java.gradle"
minimumBranchCoverage = 0.5
minimumInstructionCoverage = 0.5
excludedClassesCoverage += [
'datadog.trace.agent.test.asserts.*Assert',
'datadog.trace.agent.test.asserts.*Assert.*',
'datadog.trace.agent.test.base.*',
'datadog.trace.agent.test.log.*',
// Groovy generates unreachable lines see:
// https://issues.apache.org/jira/browse/GROOVY-9610
'datadog.trace.agent.test.AgentTestRunner',
'datadog.trace.agent.test.AbortTransformationException',
'datadog.trace.agent.test.server.http.TestHttpServer.*',
'datadog.trace.agent.test.utils.*',
// Avoid applying jacoco instrumentation to classes instrumented by tested agent
'context.FieldInjectionTestInstrumentation**',
'context.ExcludeFilterTestInstrumentation**',
'datadog.trace.agent.test.AgentTestRunner**',
'datadog.trace.agent.test.checkpoints.**',
]
dependencies {
api deps.bytebuddy
api deps.bytebuddyagent
api deps.slf4j
api deps.spock
api deps.testLogging
api deps.guava
api group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.2.30.v20200428'
// ^ 9.2 last to support java 7
api group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: versions.okhttp
api project(':dd-java-agent:agent-tooling')
api project(':utils:test-utils')
api deps.groovy
testImplementation project(':utils:test-utils')
testImplementation project(':dd-java-agent:instrumentation:trace-annotation')
testImplementation group: 'cglib', name: 'cglib', version: '3.2.5'
// test instrumenting java 1.1 bytecode
testImplementation group: 'net.sf.jt400', name: 'jt400', version: '6.1'
// We have autoservices defined in test subtree, looks like we need this to be able to properly rebuild this
testAnnotationProcessor deps.autoserviceProcessor
testCompileOnly deps.autoserviceAnnotation
}