-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
79 lines (69 loc) · 1.9 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
plugins {
id 'java-library'
id 'io.qameta.allure' version '2.8.1'
id "io.freefair.lombok" version "6.0.0-m2"
}
repositories {
mavenCentral()
}
def allureVersion = '2.17.2',
junitVersion = '5.8.2',
selenideVersion = '6.1.1'
allure {
version = allureVersion
autoconfigure = true
aspectjweaver = true
configuration = "testImplementation"
useJUnit5 {
version = allureVersion
}
}
dependencies {
//noinspection GradlePackageUpdate
testImplementation(
"io.rest-assured:rest-assured:4.4.0",
"io.rest-assured:json-schema-validator:4.4.0",
"org.assertj:assertj-core:3.21.0",
"org.aeonbits.owner:owner:1.0.12",
"org.aspectj:aspectjweaver:1.9.7",
"com.fasterxml.jackson.core:jackson-databind:2.11.2",
"com.codeborne:selenide:$selenideVersion",
"io.qameta.allure:allure-selenide:$allureVersion",
"io.qameta.allure:allure-rest-assured:$allureVersion",
"org.junit.jupiter:junit-jupiter-api:$junitVersion")
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = 11
targetCompatibility = 11
}
tasks.withType(Test) {
systemProperties(System.getProperties())
useJUnitPlatform()
testLogging {
lifecycle {
// events "started", "failed"
events "started", "skipped", "failed", "standard_error", "standard_out"
exceptionFormat "short"
}
}
}
task high_priority_tests(type: Test) {
useJUnitPlatform {
includeTags "Critical"
includeTags "Highest"
includeTags "Blocker"
includeTags "High"
}
}
task web_test(type: Test) {
useJUnitPlatform {
includeTags 'Web'
}
}
task api_test(type: Test) {
useJUnitPlatform {
includeTags 'API'
}
}