-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
80 lines (66 loc) · 2.43 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "net.serenity-bdd:serenity-single-page-report:4.1.14"
}
}
plugins {
id 'java'
id 'net.serenity-bdd.serenity-gradle-plugin' version '4.1.14'
}
group = 'net.serenitybdd.swaglabs'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = '16'
targetCompatibility = '16'
repositories {
mavenCentral()
}
ext {
serenityVersion = '4.1.14'
junitVersion = '5.11.4'
junitPlatformVersion = '1.11.4'
cucumberVersion = '7.20.1'
}
configurations {
cucumberRuntime {
extendsFrom testImplementation
}
}
dependencies {
testImplementation "net.serenity-bdd:serenity-core:${serenityVersion}"
testImplementation "net.serenity-bdd:serenity-cucumber:${serenityVersion}"
testImplementation "net.serenity-bdd:serenity-screenplay:${serenityVersion}"
testImplementation "net.serenity-bdd:serenity-screenplay-webdriver:${serenityVersion}"
testImplementation "net.serenity-bdd:serenity-ensure:${serenityVersion}"
testImplementation "net.serenity-bdd:serenity-saucelabs:${serenityVersion}"
testImplementation "org.junit.platform:junit-platform-launcher:${junitPlatformVersion}"
testImplementation "org.junit.platform:junit-platform-suite:${junitPlatformVersion}"
testImplementation "org.junit.platform:junit-platform-suite-api:${junitPlatformVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
testImplementation "org.junit.vintage:junit-vintage-engine:${junitVersion}"
testImplementation "io.cucumber:cucumber-junit-platform-engine:${cucumberVersion}"
implementation 'ch.qos.logback:logback-classic:1.2.10'
testImplementation 'org.assertj:assertj-core:3.22.0'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
systemProperties System.properties
}
tasks.withType(Test) {
systemProperty "cucumber.filter.tags", System.getProperty("tags", "")
systemProperty "webdriver.base.url", System.getProperty("webdriver.base.url", "")
systemProperty "browserstack.user", System.getProperty("browserstack.user", "")
systemProperty "browserstack.key", System.getProperty("browserstack.key", "")
}
gradle.startParameter.continueOnFailure = true
serenity {
reports = ["single-page-html"]
testRoot = "net.serenitybdd.swaglabs"
requirementsDir = "src/test/resources/features"
}
test.finalizedBy(aggregate,reports)