Skip to content

Commit b52c1a8

Browse files
committed
fix(build): add Minestom and Cyano dependencies for testing and configure test task with JVM arguments
1 parent d4079e1 commit b52c1a8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

common/build.gradle.kts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,17 @@ dependencies {
1717
implementation(libs.cloudnet.bridge)
1818

1919
testImplementation(platform(libs.aonyx.bom))
20+
testImplementation(libs.minestom)
21+
testImplementation(libs.cyano)
2022
testImplementation(libs.aves)
2123
testImplementation(libs.junit.api)
2224
testImplementation(libs.junit.platform.launcher)
2325
testRuntimeOnly(libs.junit.engine)
2426
}
2527

26-
tasks.test {
27-
useJUnitPlatform()
28+
tasks {
29+
test {
30+
useJUnitPlatform()
31+
jvmArgs("-Dminestom.inside-test=true")
32+
}
2833
}

0 commit comments

Comments
 (0)