forked from browserstack/testng-browserstack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (54 loc) · 1.27 KB
/
build.gradle
File metadata and controls
63 lines (54 loc) · 1.27 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
plugins {
id 'java'
}
repositories {
mavenLocal()
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url = 'http://repo.maven.apache.org/maven2'
}
}
dependencies {
compile 'org.testng:testng:6.9.10'
compile 'commons-io:commons-io:1.3.2'
compile 'org.seleniumhq.selenium:selenium-java:3.12.0'
compile 'com.browserstack:browserstack-local-java:0.1.0'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
}
group = 'com.browserstack'
version = '1.0-SNAPSHOT'
description = 'testng-browserstack'
sourceCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
task singleTest(type: Test) {
useTestNG() {
dependsOn cleanTest
useDefaultListeners = true
suites "config/single.testng.xml"
}
}
task localTest(type: Test) {
useTestNG() {
dependsOn cleanTest
useDefaultListeners = true
suites "config/local.testng.xml"
}
}
task parallelTest(type: Test) {
useTestNG() {
dependsOn cleanTest
useDefaultListeners = true
suites "config/parallel.testng.xml"
}
}
task suiteTest(type: Test) {
useTestNG() {
dependsOn cleanTest
useDefaultListeners = true
suites "config/suite.testng.xml"
}
}