-
Notifications
You must be signed in to change notification settings - Fork 44
/
Copy pathbuild.gradle
63 lines (51 loc) · 1.74 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
plugins {
id "net.serenity-bdd.serenity-gradle-plugin" version "4.2.11"
id 'java'
id 'eclipse'
id 'idea'
}
defaultTasks 'clean', 'test', 'aggregate'
repositories {
mavenLocal()
mavenCentral()
}
sourceCompatibility = 17
targetCompatibility = 17
ext {
serenityCoreVersion = '4.2.11'
junit5Version = '5.11.4'
assertJVersion = '3.22.0'
logbackVersion = '1.2.11'
}
dependencies {
testImplementation "net.serenity-bdd:serenity-core:${serenityCoreVersion}"
testImplementation "net.serenity-bdd:serenity-junit5:${serenityCoreVersion}"
testImplementation "net.serenity-bdd:serenity-junit:${serenityCoreVersion}"
testImplementation "net.serenity-bdd:serenity-screenplay:${serenityCoreVersion}"
testImplementation "net.serenity-bdd:serenity-ensure:${serenityCoreVersion}"
testImplementation "net.serenity-bdd:serenity-screenplay-webdriver:${serenityCoreVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit5Version}"
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junit5Version}"
testImplementation "org.assertj:assertj-core:${assertJVersion}"
implementation "ch.qos.logback:logback-classic:${logbackVersion}"
}
test {
useJUnitPlatform()
systemProperties System.getProperties()
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
filter {
includeTestsMatching "*Test"
includeTestsMatching "Test*"
includeTestsMatching "*TestSuite"
includeTestsMatching "When*"
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs += '-parameters'
}
serenity {
reports = ["single-page-html"]
}
test.finalizedBy(aggregate)
gradle.startParameter.continueOnFailure = true