-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (62 loc) · 1.92 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
plugins {
id 'java'
id "io.freefair.lombok" version "6.0.0-m2"
id 'io.qameta.allure' version '2.10.0'
}
def restAssuredVersion = "5.1.1",
junitVersion = "5.8.2",
slf4jVersion = "1.7.32",
allureVersion = "2.19.0",
assertJVersion = "3.23.1",
jacksonVersion = "2.13.4",
ownerVersion = "1.0.4"
allure {
report {
version.set(allureVersion)
}
adapter { // отвечает за появление папочки build/allure-results
aspectjWeaver.set(true) //обработка аннотации @Step
frameworks {
junit5 { //название фреймворка
adapterVersion.set(allureVersion) //версия интеграции фреймворка и Allure
}
}
}
}
group 'in.reqres'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation(
"org.junit.jupiter:junit-jupiter:$junitVersion",
"io.rest-assured:rest-assured:$restAssuredVersion",
"org.slf4j:slf4j-simple:$slf4jVersion",
"io.qameta.allure:allure-selenide:$allureVersion",
"org.assertj:assertj-core:$assertJVersion",
"com.fasterxml.jackson.core:jackson-databind:$jacksonVersion",
"io.rest-assured:rest-assured:$restAssuredVersion",
"io.qameta.allure:allure-rest-assured:$allureVersion",
"org.aeonbits.owner:owner:$ownerVersion"
)
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
systemProperties(System.getProperties())
useJUnitPlatform()
testLogging {
lifecycle {
events "started", "skipped", "failed", "standard_error", "standard_out"
exceptionFormat "short"
}
}
}
task all_tests(type: Test) {
useJUnitPlatform {
includeTags "Api"
}
}