This repository has been archived by the owner on Jul 26, 2022. It is now read-only.
/
reports.tests.gradle
86 lines (69 loc) · 2.49 KB
/
reports.tests.gradle
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
// Global Tests ////////////////////////////////////////////////////////////////
task testGlobal(type: TestReport) {
group = "verification"
description = "All the results from the 'test' task in all subprojects (global report!)"
destinationDir = file("$buildDir/reports/tests")
reportOn subprojects*.test
}
// Subproject Tests ////////////////////////////////////////////////////////////
subprojects {
// Test JARs ///////////////////////////////////////////////////////////
task testJar(type: Jar, dependsOn: testClasses) {
baseName = "test-${project.archivesBaseName}"
from sourceSets.test.output
}
configurations {
tests
}
artifacts {
tests testJar
}
// Test Tasks //////////////////////////////////////////////////////////
task testAllLong(type: Test, dependsOn: [testClasses, integrationClasses], group: 'Verification') {
description = "Test long running scenarios"
ignoreFailures = true
maxParallelForks = 2
testLogging { events 'started', 'passed'}
include '**/LongRunning*'
}
task testScenario(type: Test, dependsOn: [testClasses, integrationClasses], group: 'Verification') {
description = "Test all scenarios"
ignoreFailures = true
maxParallelForks = 2
testLogging { events 'started', 'passed'}
include '**/*ScenarioTest*'
}
task testAll(type: Test, dependsOn: [testClasses, integrationClasses], group: 'Verification') {
description = "All tests"
ignoreFailures = true
maxParallelForks = 2
testLogging { events 'started', 'passed'}
exclude '**/*TestSuite*'
}
task intTest(type: Test, dependsOn: [testClasses, integrationClasses], group: 'Verification') {
description = "All integration tests"
ignoreFailures = true
maxParallelForks = 2
testLogging { events 'started', 'passed'}
testClassesDirs = sourceSets.integration.output.classesDirs
classpath += sourceSets.integration.runtimeClasspath
exclude '**/*TestSuite*'
}
task testAllButLongCrypto(type: Test, dependsOn: [testClasses, integrationClasses], group: 'Verification') {
jvmArgs '-Dcrypto.enable=true'
description = "All tests except long running with crypto"
ignoreFailures = true
maxParallelForks = 2
testLogging { events 'started', 'passed'}
exclude '**/LongRunning*', '**/*TestSuite*'
}
test {
group = "verification"
description = "All tests except long running"
ignoreFailures = true
maxParallelForks = 2
dependsOn testClasses, integrationClasses
testLogging { events 'started', 'passed'}
exclude '**/LongRunning*', '**/*TestSuite*'
}
}