forked from geb/geb-example-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
34 lines (29 loc) · 1 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
apply plugin: "groovy"
apply plugin: "idea"
repositories {
//jcenter()
mavenCentral()
}
dependencies {
testCompile "org.seleniumhq.selenium:selenium-firefox-driver:2.42.2"
testCompile "org.codehaus.groovy:groovy-all:2.3.4"
// If using Spock, need to depend on geb-spock
testCompile "org.gebish:geb-spock:0.9.3"
testCompile ('org.spockframework:spock-core:0.7-groovy-2.0') {
exclude group: 'org.codehaus.groovy'
}
// If using JUnit, need to depend on geb-junit (3 or 4)
testCompile "org.gebish:geb-junit4:0.9.3"
testCompile( "com.github.detro.ghostdriver:phantomjsdriver:1.1.0" ) {
transitive = false
}
}
test {
reports {
html.destination = reporting.file('tests')
junitXml.destination = file("$buildDir/test-results/")
}
//systemProperty 'phantomjs.binary.path', 'c:\\Progra\\phantomjs-1.9.7-windows\\phantomjs.exe'
systemProperty 'geb.build.reportsDir', reporting.file('geb-reports')
systemProperty 'geb.env', 'firefox'
}