Skip to content

Commit 8fb5892

Browse files
committed
Add junit to the test dependencies
1 parent 7de0aac commit 8fb5892

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
java
3+
jacoco
34
`java-library`
45
`maven-publish`
56
}
@@ -17,13 +18,26 @@ dependencies {
1718
api(libs.minestom)
1819
compileOnly(libs.junit.params)
1920
compileOnly(libs.junit.api)
21+
22+
testImplementation(libs.junit.api)
23+
testImplementation(libs.junit.params)
24+
testImplementation(libs.junit.platform.launcher)
25+
testRuntimeOnly(libs.junit.engine)
2026
}
2127

2228
tasks {
2329
compileJava {
2430
options.encoding = "UTF-8"
2531
options.release.set(21)
2632
}
33+
34+
test {
35+
useJUnitPlatform()
36+
jvmArgs("-Dminestom.inside-test=true")
37+
testLogging {
38+
events("passed", "skipped", "failed")
39+
}
40+
}
2741
}
2842

2943
publishing {

0 commit comments

Comments
 (0)