-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
105 lines (83 loc) · 2.54 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "io.qameta.allure:allure-gradle:2.8.1"
}
}
plugins {
id 'java-library'
id 'application'
id 'io.qameta.allure' version '2.8.1'
}
group 'cloud.autotests'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
logging.captureStandardOutput LogLevel.INFO
ext {
allureVersion = '2.21.0'
junitVersion = '5.7.0'
restAssuredVersion = "4.3.3"
orgJsonVersion = "20201115"
orgAspectjVersion = "1.9.6"
slfjVersion = "1.7.30"
}
repositories {
jcenter()
mavenCentral()
}
allure {
version = "${allureVersion}"
autoconfigure = true
aspectjweaver = true
useJUnit5 {
version = "${allureVersion}"
}
}
dependencies {
testImplementation "org.aspectj:aspectjweaver:${orgAspectjVersion}"
testImplementation "io.qameta.allure:allure-rest-assured:${allureVersion}"
// testImplementation "io.qameta.allure:allure-junit-platform:${allureVersion}"
// testImplementation "io.qameta.allure:allure-junit5:${allureVersion}"
testImplementation "io.rest-assured:rest-assured:${restAssuredVersion}"
testImplementation "io.rest-assured:xml-path:${restAssuredVersion}"
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
testImplementation "org.json:json:${orgJsonVersion}"
testImplementation 'org.hamcrest:hamcrest-all:1.3'
testImplementation "org.slf4j:slf4j-simple:${slfjVersion}"
testImplementation "io.qameta.allure:allure-java-commons:${allureVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
useJUnitPlatform {
}
systemProperties = System.properties
systemProperty("junit.jupiter.extensions.autodetection.enabled", "true") // to run allure testops selective tasks
testLogging {
// set options for log level LIFECYCLE
events "failed",
"started",
"passed",
"skipped",
"standard_out",
"standard_error"
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
showStandardStreams true
}
}
task reqres(type: Test) {
useJUnitPlatform {
includeTags 'rest_api_tests_reqres'
}
}