-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (34 loc) · 908 Bytes
/
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: 'java'
apply plugin: 'wrapper'
sourceCompatibility = 1.8
targetCompatibility = 1.8
wrapper {
gradleVersion = "3.2"
}
ext {
junitVersion = "4.+"
seleniumVersion = "2.+"
}
repositories { mavenCentral() }
dependencies {
compile "org.seleniumhq.selenium:selenium-java:$seleniumVersion"
testCompile "junit:junit:$junitVersion",
'info.cukes:cucumber-jvm:1.2.5',
'info.cukes:cucumber-java8:1.2.5',
'info.cukes:cucumber-junit:1.2.5'
}
configurations {
cucumberRuntime {
extendsFrom testRuntime
}
}
task cucumber() {
dependsOn assemble, compileTestJava
doLast {
javaexec {
main = "cucumber.api.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
args = ['-p', 'pretty', '-p', 'html:target/cucumber', '--glue', 'com.goeuro.searchResults', 'src/test/resources']
}
}
}