-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (46 loc) · 1.84 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
54 lines (46 loc) · 1.84 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
plugins {
id("java")
id("io.freefair.lombok") version "8.3"
}
group = "com.qualityminds"
version = "0.1.0"
repositories {
mavenCentral()
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
dependencies {
// https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java
testImplementation("org.seleniumhq.selenium:selenium-java:4.13.0")
// https://mvnrepository.com/artifact/org.testng/testng
testImplementation("org.testng:testng:7.8.0")
// https://mvnrepository.com/artifact/io.github.bonigarcia/webdrivermanager
testImplementation("io.github.bonigarcia:webdrivermanager:5.5.3")
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation("org.assertj:assertj-core:3.24.2")
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
testImplementation("org.slf4j:slf4j-api:2.0.9")
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
testImplementation("ch.qos.logback:logback-classic:1.4.11")
// https://mvnrepository.com/artifact/ch.qos.logback/logback-core
testImplementation("ch.qos.logback:logback-core:1.4.11")
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
testImplementation("com.fasterxml.jackson.core:jackson-databind:2.15.2")
}
tasks.test {
useTestNG {
suites("testng/" + (System.getProperty("suiteFile", "testng.xml") ?: "testng.xml"))
}
systemProperties = System.getProperties().map { e -> Pair(e.key as String, e.value) }.toMap()
testLogging {
events(
TestLogEvent.PASSED,
TestLogEvent.FAILED,
TestLogEvent.SKIPPED
)
exceptionFormat = TestExceptionFormat.FULL
}
}