forked from thucydides-webtests/thucydides
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
104 lines (89 loc) · 2.78 KB
/
build.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
//buildscript {
// dependencies {
// project(':thucydides-test-utils')
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:0.6'
// }
//}
allprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
// apply plugin: 'maven-publish'
// apply plugin: 'com.jfrog.bintray'
// apply plugin: 'release'
sourceCompatibility = 1.7
targetCompatibility = 1.7
group = 'net.thucydides'
version = '0.9.280-SNAPSHOT'
repositories {
mavenLocal()
jcenter()
}
task wrapper(type: Wrapper) {
gradleVersion = '1.11'
}
test {
exclude '**/*$*'
exclude '**/integration/**'
exclude '**/samples/**'
exclude '**/*Sample*'
jvmArgs '-XX:MaxPermSize=256m'
}
task integrationTests(type: Test) {
exclude '**/*$*'
exclude '**/samples/**'
exclude '**/*Sample*'
exclude '**/integration/browsers**'
include '**/integration/**'
reports.junitXml.destination = "${buildDir}/reports/integration-tests"
reports.html.destination = "${buildDir}/reports/integration-tests"
jvmArgs '-XX:MaxPermSize=256m'
}
// test {
// afterTest { desc, result ->
// println "Test ${desc.name} [${desc.className}] => ${result.resultType}"
// }
// }
//
// integrationTests {
// afterTest { desc, result ->
// println "Test ${desc.name} [${desc.className}] => ${result.resultType}"
// }
// }
task browserTests(type: Test) {
exclude '**/*$*'
exclude '**/samples/**'
exclude '**/*Sample*'
exclude '**/*Base'
include '**/integration/browsers/**'
}
integrationTests.dependsOn test
check.dependsOn integrationTests
dependencies {
compile "com.google.inject:guice:3.0"
compile "org.slf4j:slf4j-api:1.6.4"
testCompile "ch.qos.logback:logback-classic:1.0.13"
testCompile "junit:junit:4.11"
testCompile "org.hamcrest:hamcrest-integration:1.3"
testCompile "org.hamcrest:hamcrest-library:1.3"
testCompile "org.hamcrest:hamcrest-core:1.3"
testCompile('org.mockito:mockito-all:1.10.7') {
exclude group: "org.hamcrest"
}
testCompile("org.spockframework:spock-core:0.7-groovy-2.0") {
exclude group: "junit"
}
testCompile("com.github.goldin:spock-extensions:0.1.4") {
exclude module: "spock-core"
}
testCompile("org.codehaus.groovy:groovy-all:2.3.3")
testCompile("org.easytesting:fest-assert:1.4")
}
subprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:-options"
}
}
}