-
Notifications
You must be signed in to change notification settings - Fork 236
/
build.gradle.kts
50 lines (40 loc) · 938 Bytes
/
build.gradle.kts
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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
kotlin("jvm") version "1.9.25"
id("com.adarshr.test-logger") version "3.2.0"
id("com.diffplug.spotless") version "6.25.0"
}
repositories {
mavenCentral()
maven("https://plugins.gradle.org/m2/")
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.11.3")
testImplementation("org.amshove.kluent:kluent:1.73")
}
sourceSets {
test {
java {
srcDirs.add(File("src/test"))
}
}
}
tasks.test {
useJUnitPlatform()
testLogging {
events("failed")
// log full stacktrace of failed test (assertion library descriptive error)
exceptionFormat = TestExceptionFormat.FULL
}
}
kotlin {
jvmToolchain(19)
}
spotless {
kotlin {
target("test/com/igorwojda/**/*.kt")
ktlint()
indentWithSpaces()
endWithNewline()
}
}