forked from LambdaTest/geb-lambdatest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (54 loc) · 1.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
apply plugin: "idea"
apply plugin: "geb-lambdatest"
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.gebish:geb-gradle:3.3'
}
}
allprojects {
apply plugin: "groovy"
}
group 'org.lambdatest'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
ext {
gebVersion = '3.3'
seleniumVersion = '3.14.0'
}
dependencies {
// If using Spock, need to depend on geb-spock
testCompile "org.gebish:geb-spock:$gebVersion"
compile "org.spockframework:spock-core:0.7-groovy-2.0"
compile "org.seleniumhq.selenium:selenium-firefox-driver:$seleniumVersion"
compile "org.seleniumhq.selenium:selenium-chrome-driver:$seleniumVersion"
}
repositories {
jcenter()
}
//test task will be used when you run the tests locally, not with cloud
test {
systemProperty "geb.build.reportsDir", reporting.file("$project.buildDir/test-results/$name/geb")
systemProperty "geb.env", 'firefox' //select an env/browser for local testing
}
lambdaTest {
browsers{
firefox_windows
}
task {
// testClassesDir = rootProject.test.testClassesDir
// testSrcDirs = rootProject.test.testSrcDirs
// classpath = rootProject.test.classpath
systemProperty "geb.build.reportsDir", reporting.file("$project.buildDir/test-results/$name/geb")
}
account {
username = 'prateeks'
accessKey = 'IuCSesD83A7LsTFzEKS0Lb6tzvEfBQ38DMkFTEpudatxxxsdjH'
}
tunnelOps {
tunnelName = 'geb-'+UUID.randomUUID().toString()
nows = true
}
}