-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
55 lines (45 loc) · 1.47 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
group 'Selenide-Spock-Allure'
version '1.0-SNAPSHOT'
apply plugin: 'groovy'
apply plugin: 'ru.d10xa.allure'
defaultTasks 'clean', 'browserChrome', 'allureReport'
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.11'
testCompile group: 'junit', name: 'junit', version: '4.11'
//testCompile group: 'org.spockframework', name: 'spock-core', version: '1.1-groovy-2.4-rc-3'
testCompile 'com.codeborne:selenide:4.1'
testCompile group: 'ru.yandex.qatools.allure', name: 'allure-spock-adaptor-parent', version: '1.0'
compile 'io.github.bonigarcia:webdrivermanager:1.5.0'
compile 'org.slf4j:slf4j-nop:1.7.21'
compile 'org.testng:testng:6.9.10'
compile 'org.seleniumhq.selenium:selenium-java:2.53.1'
}
task browserFirefox(type: Test) {
systemProperties['browser'] = 'firefox'
}
task browserChrome(type: Test) {
systemProperties['browser'] = 'chrome'
}
tasks.withType(Test).all { testTask ->
systemProperties['allure.results.directory'] = file("$buildDir/allure-results")
systemProperties['selenide.reports'] = file("$buildDir/selenide-results")
testTask.systemProperties['file.encoding'] = 'UTF-8'
testTask.testLogging.showStandardStreams = true
testTask.outputs.upToDateWhen { false }
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "ru.d10xa:gradle-allure-plugin:0.5.2"
}
}
allure {
aspectjweaver = true
//spock = true
junit = true
}