-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathbuild.gradle
More file actions
41 lines (33 loc) · 1.06 KB
/
build.gradle
File metadata and controls
41 lines (33 loc) · 1.06 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
plugins {
id 'java'
id 'com.browserstack.gradle-sdk' version "1.1.2" // sdk plugin
}
repositories { mavenCentral() }
dependencies {
implementation 'org.junit.vintage:junit-vintage-engine:5.8.2'
implementation 'net.serenity-bdd:serenity-core:3.3.4'
implementation 'net.serenity-bdd:serenity-cucumber:3.3.4'
implementation 'com.browserstack:browserstack-java-sdk:latest.release'
}
group = 'com.browserstack'
version = '1.0-SNAPSHOT'
description = 'serenity-browserstack'
sourceCompatibility = '1.8'
def browserstackSDKArtifact = configurations.compileClasspath.resolvedConfiguration.resolvedArtifacts.find { it.name == 'browserstack-java-sdk' }
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
tasks.withType(Test) {
systemProperties = System.properties
jvmArgs += "-javaagent:${browserstackSDKArtifact.file}"
}
task sampleTest(type: Test) {
dependsOn cleanTest
include '**/SampleTest.**'
useJUnitPlatform()
}
task sampleLocalTest(type: Test) {
dependsOn cleanTest
include '**/LocalTest.**'
useJUnitPlatform()
}