-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
41 lines (31 loc) · 1.02 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
apply plugin: "groovy"
apply plugin: "idea"
apply plugin: "eclipse"
repositories {
mavenCentral()
}
// The drivers we want to use
drivers = ["firefox", "chrome"]
dependencies {
groovy "org.codehaus.groovy:groovy-all:1.7.5"
def gebVersion = "0.6.0"
def seleniumVersion = "2.0rc3"
testCompile "org.codehaus.geb:geb-spock:$gebVersion"
testCompile "org.spockframework:spock-core:0.5-groovy-1.7"
drivers.each { driver ->
testCompile "org.seleniumhq.selenium:selenium-$driver-driver:$seleniumVersion"
}
}
drivers.each { driver ->
task "${driver}Test"(type: Test) {
testReportDir = file("$reportsDir/$name/tests")
testResultsDir = file("$buildDir/test-results/$name")
systemProperty "geb.build.baseUrl", "http://www.springone2gx.com/conference/chicago/2010/10/home"
systemProperty "geb.build.reportsDir", "$reportsDir/$name/geb"
systemProperty "geb.env", driver
}
}
task test(overwrite: true, dependsOn: drivers.collect { tasks["${it}Test"] })
task wrapper(type: Wrapper) {
gradleVersion = '1.0-milestone-3'
}