-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (43 loc) · 1.61 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
import java.nio.charset.StandardCharsets
plugins {
id 'java'
}
repositories {
mavenCentral()
}
defaultTasks('test')
dependencies {
testImplementation group: 'org.testng', name: 'testng', version: '7.5'
testImplementation group: 'io.cucumber', name: 'cucumber-testng', version: '7.3.3'
testImplementation group: 'io.cucumber', name: 'cucumber-java', version: '7.3.3'
testImplementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '4.1.+'
testImplementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '5.1.+'
testImplementation group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testImplementation group: 'org.apache.commons', name: 'commons-configuration2', version: '2.7'
testRuntimeOnly group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.+'
}
java {
compileTestJava.options.encoding = StandardCharsets.UTF_8
}
task highPriorityRegressionTests(type: Test) {
useTestNG() {
suites 'src/test/resources/com/mitigram/web/testngrunners/highpriorityregressiontests.xml'
}
}
task lowPriorityRegressionTests(type: Test) {
useTestNG() {
suites 'src/test/resources/com/mitigram/web/testngrunners/lowpriorityregressiontests.xml'
}
}
test {
useTestNG() {
suites 'src/test/resources/com/mitigram/web/testngrunners/lowpriorityregressiontests.xml',
'src/test/resources/com/mitigram/web/testngrunners/highpriorityregressiontests.xml'
}
}
tasks.withType(Test) {
testLogging {
events = ['PASSED', 'FAILED', 'SKIPPED']
}
outputs.upToDateWhen { false }
}