-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
122 lines (91 loc) · 2.76 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
114
115
116
117
118
119
120
121
plugins {
id 'java'
id "io.qameta.allure" version '2.7.0'
id 'com.adarshr.test-logger' version '1.6.0'
}
group 'store.ua'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.0'
compile group: 'com.codeborne', name: 'selenide', version: '5.1.0'
compile group: 'io.qameta.allure', name: 'allure-selenide', version: '2.10.0'
compile group: 'com.automation-remarks', name: 'video-recorder-junit5', version: '1.+'
testCompile "org.testcontainers:testcontainers:1.10.6"
testCompile "org.testcontainers:junit-jupiter:1.10.6"
testCompile group: 'org.testcontainers', name: 'selenium', version: '1.10.6'
compile group: 'org.projectlombok', name: 'lombok', version: '1.18.6'
compile group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '3.3.0'
}
test {
//testLogging.showStandardStreams = true
reports.html.enabled = false
useJUnitPlatform {
excludeTags 'slow'
testLogging {
events "PASSED", "SKIPPED", "FAILED"
showStandardStreams = true
exceptionFormat = 'full'
}
}
outputs.upToDateWhen { false }
}
testlogger {
theme 'mocha-parallel'
slowThreshold 1 // ms for test running. set to 1ms for all tests time count in console.
showSummary true
showPassed true
showSkipped true
showFailed true
showStandardStreams false
showPassedStandardStreams true
showSkippedStandardStreams true
showFailedStandardStreams true
}
/*
task fastTest(type: Test) {
dependsOn 'cleanTest' // for jenkins reports (make clean run to get fresh JUnit report)
useJUnitPlatform {
includeTags 'fast'
}
}
// To make clean report, we should run './gradlew clean test'
allure {
autoconfigure = true
version = '2.10.0' // Latest Allure Version
configuration = 'implementation' //to be seen @Step on allure
useJUnit5 {
version = '2.10.0' // Latest Allure Version
}
}
// For using gradle.properties to configure selenide settings
tasks.withType(Test) {
systemProperties = System.properties
systemProperties 'file.encoding': 'UTF-8'
outputs.upToDateWhen { false }
}
test {
useJUnit {
includeCategories 'org.gradle.junit.CategoryA'
excludeCategories 'org.gradle.junit.CategoryB'
}
}
test {
include '**my.package.name/*'
}
test {
exclude '**my.package.name/*'
}
task wrapper(type: Wrapper) {
gradleVersion = '3.3'
}
tasks.withType(Test) {
useJUnitPlatform()
testLogging.showStandardStreams = true
maxParallelForks = (int) (Runtime.runtime.availableProcessors().intdiv(2) ?: 1)
}
*/