aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/testutil/KotestPlugin.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-11-27 16:04:05 +0100
committerLinnea Gräf <nea@nea.moe>2024-11-27 16:05:19 +0100
commitee0526ac67e093f77d17747d9316765b2db272a2 (patch)
tree1e2f8a26475afcc8c0d36b85068e1a2b282410ab /src/test/kotlin/testutil/KotestPlugin.kt
parent9df1f12970dafdbf4cb13c76c1df1caed66f4a59 (diff)
downloadFirmament-ee0526ac67e093f77d17747d9316765b2db272a2.tar.gz
Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.tar.bz2
Firmament-ee0526ac67e093f77d17747d9316765b2db272a2.zip
test: Use kotest
Diffstat (limited to 'src/test/kotlin/testutil/KotestPlugin.kt')
-rw-r--r--src/test/kotlin/testutil/KotestPlugin.kt16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/kotlin/testutil/KotestPlugin.kt b/src/test/kotlin/testutil/KotestPlugin.kt
new file mode 100644
index 0000000..6db50fb
--- /dev/null
+++ b/src/test/kotlin/testutil/KotestPlugin.kt
@@ -0,0 +1,16 @@
+package moe.nea.firmament.test.testutil
+
+import io.kotest.core.config.AbstractProjectConfig
+import io.kotest.core.extensions.Extension
+import moe.nea.firmament.test.FirmTestBootstrap
+
+class KotestPlugin : AbstractProjectConfig() {
+ override fun extensions(): List<Extension> {
+ return listOf()
+ }
+
+ override suspend fun beforeProject() {
+ FirmTestBootstrap.bootstrapMinecraft()
+ super.beforeProject()
+ }
+}