-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (74 loc) · 2.25 KB
/
Copy pathbuild.gradle
File metadata and controls
90 lines (74 loc) · 2.25 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
plugins {
id 'java-library'
id 'java'
id "io.qameta.allure" version "2.11.2"
}
group 'io.github.sskorol'
version '1.0.0'
description 'Test Data Supplier example'
ext {
aspectjVersion = '1.9.19'
lombokVersion = '1.18.26'
}
configurations {
agent
}
java {
sourceCompatibility = 17
targetCompatibility = 17
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
agent "org.aspectj:aspectjweaver:${aspectjVersion}"
implementation('org.assertj:assertj-core:3.24.2',
'org.testng:testng:7.7.1',
'io.github.sskorol:test-data-supplier:2.2.0',
'io.qameta.allure:allure-testng:2.21.0',
'org.slf4j:slf4j-simple:2.0.6',
"org.aspectj:aspectjrt:${aspectjVersion}",
"org.aspectj:aspectjweaver:${aspectjVersion}",
"org.projectlombok:lombok:${lombokVersion}"
)
annotationProcessor("org.projectlombok:lombok:$lombokVersion")
testImplementation("org.projectlombok:lombok:$lombokVersion")
testAnnotationProcessor("org.projectlombok:lombok:$lombokVersion")
}
[compileJava, compileTestJava]*.options*.compilerArgs = ['-parameters']
tasks.register('copyConfig', Copy) {
from 'src/test/resources/config'
into 'build/allure-results'
}
tasks.register('copyHistory', Copy) {
from 'src/test/resources/history'
into 'build/allure-results/history'
}
test {
doFirst {
jvmArgs(
"-javaagent:${configurations.agent.singleFile}",
'--add-opens', 'java.base/java.lang=ALL-UNNAMED'
)
}
testLogging {
events "skipped", "failed"
exceptionFormat "full"
}
useTestNG() {
listeners << 'io.github.sskorol.listeners.BaseListener'
suites 'src/test/resources/suites/parent.xml'
}
systemProperty 'allure.model.indentOutput', true
systemProperty 'allure.results.directory', 'build/allure-results'
systemProperty 'allure.link.issue.pattern', 'https://github.com/sskorol/test-data-supplier-gradle-example/issues/{}'
systemProperty 'allure.link.tms.pattern', 'https://github.com/sskorol/test-data-supplier-gradle-example/issues/{}'
}
test.dependsOn copyConfig, copyHistory
allure {
version = '2.21.0'
}
wrapper {
gradleVersion = '8.0.1'
}