forked from autotests-cloud/AUTO-355
-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (61 loc) · 2.09 KB
/
Copy pathbuild.gradle
File metadata and controls
69 lines (61 loc) · 2.09 KB
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
plugins {
id 'java-library'
id 'io.qameta.allure' version '2.8.1'
id "io.freefair.lombok" version "6.4.2"
}
repositories {
mavenCentral()
}
def allureVersion = "2.13.9",
selenideVersion = "6.3.5",
junitVersion = "5.8.2"
allure {
version = allureVersion
autoconfigure = true
aspectjweaver = true
configuration = "testImplementation"
useJUnit5 {
version = allureVersion
}
}
dependencies {
testImplementation(
"org.aspectj:aspectjweaver:1.9.6",
"com.codeborne:selenide:$selenideVersion",
"io.qameta.allure:allure-selenide:$allureVersion",
"io.rest-assured:rest-assured:4.3.1",
"io.qameta.allure:allure-rest-assured:$allureVersion",
"org.aeonbits.owner:owner:1.0.12",
"com.github.javafaker:javafaker:1.0.2",
"org.assertj:assertj-core:3.19.0",
"com.google.code.gson:gson:2.9.0",
"com.opencsv:opencsv:5.5.2",
"org.junit.jupiter:junit-jupiter:$junitVersion",
"org.slf4j:slf4j-simple:1.7.29"
)
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.withType(Test) {
systemProperties(System.getProperties())
useJUnitPlatform()
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", "failed"
events "started", "skipped", "failed", "standard_error", "standard_out"
exceptionFormat "short"
}
}
}