-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
113 lines (97 loc) · 2.83 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
106
107
108
109
110
111
112
113
group "selenide_kotlin_practice"
version "0.0.1"
apply plugin: "java"
apply plugin: "kotlin"
apply plugin: "io.qameta.allure"
apply plugin: "org.gradle.test-retry"
apply plugin: "com.adarshr.test-logger"
buildscript {
ext.allureVersion = "2.13.1"
ext.allureGradleVersion = "2.8.1"
ext.kotlinVersion = "1.4.31"
ext.junitJupiterVersion = "5.6.2"
ext.selenideVersion = "5.14.2"
ext.kluentVersion = "1.60"
ext.gradleLoggerVersion = "1.7.0"
ext.gradleRetryVersion = "1.1.3"
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "io.qameta.allure:allure-gradle:$allureGradleVersion"
classpath "com.adarshr:gradle-test-logger-plugin:$gradleLoggerVersion"
classpath "org.gradle:test-retry-gradle-plugin:$gradleRetryVersion"
}
}
repositories {
jcenter()
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion")
compile("org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion")
compile("com.codeborne:selenide:$selenideVersion")
compile("io.qameta.allure:allure-selenide:$allureVersion")
compile("org.amshove.kluent:kluent:$kluentVersion")
testCompile("org.junit.jupiter:junit-jupiter:$junitJupiterVersion")
}
compileKotlin {
kotlinOptions.jvmTarget = 1.8
}
compileTestKotlin {
kotlinOptions.jvmTarget = 1.8
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging {
testlogger {
theme "mocha-parallel"
showStandardStreams false
showExceptions true
showSummary true
showPassed true
showSkipped true
showFailed true
showCauses true
slowThreshold 1000
}
}
retry {
maxRetries = 1
maxFailures = 10
failOnPassedAfterRetry = false
}
systemProperties = [
"junit.jupiter.execution.parallel.enabled": true,
"junit.jupiter.execution.parallel.config.strategy": "fixed",
"junit.jupiter.execution.parallel.config.fixed.parallelism": "$thread"
]
}
test {
systemProperties["launch"] = "chrome.local"
systemProperties["jenkins"] = "$jenkins"
}
task testFirefox(type: Test) {
systemProperties["launch"] = "firefox.$launch"
systemProperties["jenkins"] = "$jenkins"
}
task testChrome(type: Test) {
systemProperties["launch"] = "chrome.$launch"
systemProperties["jenkins"] = "$jenkins"
}
allure {
version = allureVersion
aspectjweaver = true
aspectjVersion = "1.8.10"
configuration = "compile"
useJUnit5 {
version = allureVersion
}
}
tasks.withType(Wrapper) {
gradleVersion = "6.2"
}