-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
50 lines (38 loc) · 1.37 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
buildscript {
ext {
TESTNG_VERSION = '7.3.0'
CUCUMBER_VERSION = '6.7.0'
// Parallel execution will use this value as thread count
THREAD_COUNT = 5
}
}
plugins {
id 'java'
}
group 'com.dineshv'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation group: 'org.testng', name: 'testng', version: "$TESTNG_VERSION"
testImplementation group: 'io.cucumber', name: 'cucumber-java', version: "$CUCUMBER_VERSION"
testImplementation group: 'io.cucumber', name: 'cucumber-core', version: "$CUCUMBER_VERSION"
testImplementation group: 'io.cucumber', name: 'cucumber-testng', version: "$CUCUMBER_VERSION"
testImplementation group: 'io.cucumber', name: 'cucumber-picocontainer', version: "$CUCUMBER_VERSION"
}
test {
// tests will be run using the testng
useTestNG()
// We use the DataProvider parallel option.
// See the TestRunner.java for the DataProvider annotation
jvmArgs(["-Ddataproviderthreadcount=$THREAD_COUNT"])
// Specific whether test classes should be detected
scanForTestClasses = false
// display the stdout and stderr on the console
testLogging.showStandardStreams(true)
//Specifies whether the build should break when the tests fail.
ignoreFailures = false
// Indicates if test run will halt on the first failed test
failFast = true
}