-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
86 lines (75 loc) · 2.66 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
plugins {
id 'java'
id 'io.qameta.allure' version '2.8.1'
}
group 'org.demowebshop'
version '1.2'
repositories {
mavenCentral()
}
ext {
restAssuredVersion = "4.4.0"
allureVersion = '2.14.0'
junitVersion = "5.7.2"
aspecjweaverVersion = "1.9.6"
selenideVersion = "5.24.2"
ownerVersion = "1.0.12"
slf4jVersion = '1.7.32'
fakerVersion = "1.0.2"
jacksonVersion = "2.12.4"
}
allure {
autoconfigure = true
aspectjweaver = true
configuration = "testImplementation"
version = "${allureVersion}"
useJUnit5 {
version = "${allureVersion}"
}
}
dependencies {
testImplementation(
"com.codeborne:selenide:${selenideVersion}",
"io.qameta.allure:allure-selenide:${allureVersion}",
"io.qameta.allure:allure-java-commons:$allureVersion",
"org.aeonbits.owner:owner:${ownerVersion}",
"io.rest-assured:rest-assured:${restAssuredVersion}",
"io.qameta.allure:allure-rest-assured:$allureVersion",
"org.aspectj:aspectjweaver:${aspecjweaverVersion}",
"org.junit.jupiter:junit-jupiter-api:${junitVersion}" ,
"org.junit.jupiter:junit-jupiter-params:${junitVersion}",
"com.github.javafaker:javafaker:${fakerVersion}",
"com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
)
testCompileOnly "org.projectlombok:lombok:1.18.20"
testAnnotationProcessor "org.projectlombok:lombok:1.18.20"
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion", "org.slf4j:slf4j-simple:${slf4jVersion}")
}
test {
useJUnitPlatform()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(Test) {
systemProperties += System.properties
useJUnitPlatform()
System.setProperty("junit.jupiter.extensions.autodetection.enabled", "true")
if (System.getProperty("threads") != null) {
systemProperties += [
'junit.jupiter.execution.parallel.enabled' : true,
'junit.jupiter.execution.parallel.mode.default' : 'concurrent',
'junit.jupiter.execution.parallel.mode.classes.default' : 'concurrent',
'junit.jupiter.execution.parallel.config.strategy' : 'fixed',
'junit.jupiter.execution.parallel.config.fixed.parallelism': System.getProperty("threads").toInteger()
]
}
testLogging {
lifecycle {
events "started", "skipped", "failed", "standard_error", "standard_out"
exceptionFormat "short"
}
}
}