-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (85 loc) · 2.54 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath group: 'io.qameta.allure', name: 'allure-gradle', version: '2.8.1'
}
}
plugins {
id 'java'
id 'java-library'
id 'application'
id 'io.qameta.allure' version '2.8.1'
}
group 'xyz.egorivanov'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext {
allureVersion = '2.13.9'
junitVersion = '5.7.0'
selenideVersion = "5.20.1"
restAssuredVersion = "4.3.2"
orgJsonVersion = "20201115"
orgAspectjVersion = "1.9.6"
slfjVersion = "1.7.30"
}
repositories {
jcenter()
mavenCentral()
}
allure {
version = "${allureVersion}"
autoconfigure = true
aspectjweaver = true
useJUnit5 {
version = "${allureVersion}"
}
}
dependencies {
testImplementation "org.aspectj:aspectjweaver:${orgAspectjVersion}"
testImplementation "com.codeborne:selenide:${selenideVersion}"
testImplementation "io.qameta.allure:allure-selenide:${allureVersion}"
testImplementation "io.qameta.allure:allure-junit-platform:${allureVersion}"
testImplementation "ch.qos.logback:logback-classic:1.2.3"
testImplementation "org.slf4j:slf4j-simple:${slfjVersion}"
testImplementation "org.json:json:${orgJsonVersion}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-params:${junitVersion}"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
systemProperties = System.properties
testLogging {
// set options for log level LIFECYCLE
events "failed",
// "started",
// "passed",
// "skipped",
// "standard_out",
"standard_error"
exceptionFormat "full"
showExceptions true
showCauses true
showStackTraces true
}
// systemProperty "selenide.fastSetValue","true"
systemProperty "selenide.timeout","6000"
systemProperty "chromeoptions.args","--disable-notifications"
systemProperty "chromeoptions.prefs","intl.accept_languages=en"
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
}
task demoqa_tests(type: Test) {
useJUnitPlatform {
includeTags 'elements_tests'
includeTags 'form_tests'
// includeTags 'windows_tests'
// includeTags 'frames_tests'
// includeTags 'alerts_tests'
}
}