forked from blockchain/unused-My-Wallet-V3-jar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegTest.gradle
More file actions
53 lines (39 loc) · 1.34 KB
/
integTest.gradle
File metadata and controls
53 lines (39 loc) · 1.34 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
sourceSets {
integTest {
java.srcDir 'src/integTest/java'
resources.srcDir 'src/integTest/resources'
}
}
dependencies {
integTestCompile sourceSets.main.output
integTestCompile sourceSets.test.output
integTestCompile configurations.compile
integTestCompile configurations.testCompile
integTestRuntime configurations.runtime
integTestRuntime configurations.testRuntime
}
task integTest(type: Test) {
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = 'Runs the integration tests.'
maxHeapSize = '1024m'
testClassesDir = sourceSets.integTest.output.classesDir
classpath = sourceSets.integTest.runtimeClasspath
binResultsDir = file("$buildDir/integration-test-results/binary/integTest")
reports {
html.destination = "$buildDir/reports/integration-test"
junitXml.destination = "$buildDir/integration-test-results"
}
mustRunAfter tasks.test
}
check.dependsOn integTest
gradle.projectsEvaluated {
def quickTasks = []
gradle.rootProject.allprojects.each { project ->
quickTasks.addAll(project.tasks.findAll { it.name == 'test' })
quickTasks.addAll(project.tasks.withType(FindBugs))
quickTasks.addAll(project.tasks.withType(Pmd))
}
quickTasks.each { task ->
project.tasks.integTest.mustRunAfter task
}
}