-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
142 lines (106 loc) · 3.45 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
apply plugin: 'java'
apply plugin: 'maven'
//apply plugin: 'war'
//apply from: 'https://raw.github.com/akhikhl/gretty/master/pluginScripts/gretty.plugin'
//gradle appRun
//apply from: 'gretty.plugin'
//apply plugin: 'org.akhikhl.gretty'
//gretty {
// httpPort = 8081
// contextPath = "/"
// //contextPath = "site/allure-gradle"
// // ... many more properties
//}
group = 'com.test'
version = '1.0-SNAPSHOT'
description = """"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
repositories {
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'org.testng', name: 'testng', version: '6.14.3'
//compile group: 'ru.yandex.qatools.allure', name: 'allure-testng-adaptor', version:'1.5.4'
compile group: 'ru.yandex.qatools.allure', name: 'allure-java-commons', version:'1.3.9'
compile group: 'ru.yandex.qatools.allure', name: 'allure-java-aspects', version: '1.5.4'
compile group: 'ru.yandex.qatools.allure', name: 'allure-commons', version: '1.5.4'
compile group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '2.53.1'
compile group: 'com.codeborne', name: 'selenide', version: '4.7'
compile group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '1.7.1'
compile group: 'javax.mail', name: 'javax.mail-api', version: '1.5.5'
compile group: 'com.sun.mail', name: 'javax.mail', version: '1.5.5'
testCompile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
compile group: 'io.qameta.allure', name: 'allure-selenide', version: '2.6.0'
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.15'
compile group: 'org.apache.poi', name: 'poi', version: '3.15'
compile group: 'org.assertj', name: 'assertj-core', version: '2.6.0'
compile group: 'org.assertj', name: 'assertj-db', version: '1.2.0'
// https://mvnrepository.com/artifact/commons-cli/commons-cli
compile group: 'commons-cli', name: 'commons-cli', version: '1.3.1'
}
//get from goolge repo
task libs(type: Sync) {
from configurations.testCompile
into "$buildDir/lib"
}
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath "io.qameta.allure:allure-gradle:2.5"
}
}
apply plugin: 'io.qameta.allure'
allure {
version = '2.6.0'
//aspectjweaver = true
autoconfigure = true
reportDir = file("$rootDir/target/allure-report")
resultsDir = file("$rootDir/target/allure-results")
useTestNG (){
version = '2.6.0'
spiOff = true
}
}
//'allureReport', 'allureServe'
//
//test {
// apply plugin: 'io.qameta.allure'
//
//
// allure {
//
// version = '2.6.0'
// //aspectjweaver = true
// autoconfigure = true
//
// reportDir = file("$rootDir/target/allure-report")
// resultsDir = file("$rootDir/target/allure-results")
//
// useTestNG (){
// version = '2.6.0'
// spiOff = true
//
// }
// }
//'allureReport', 'allureServe'
test {
useTestNG(){
//include "TestTest.*"
//include "GoogleTest.*"
suites "test.xml"
//useDefaultListeners = false
}
}
// useTestNG(){
// //include "GoogleTest.*"
// suites "testng.xml"
// //useDefaultListeners = false
// }