build: Allow skipping tests during release

This commit is contained in:
Linnea Gräf
2025-04-11 19:53:58 +02:00
parent 86ae27fb1f
commit 68238a8264
2 changed files with 65 additions and 18 deletions

View File

@@ -35,6 +35,7 @@ object ItemResources {
fun loadItem(name: String): ItemStack {
// TODO: make the load work with enchantments
// TODO: use DFU to load older items
return ItemStack.CODEC.parse(getNbtOps(), loadSNbt("testdata/items/$name.snbt"))
.getOrThrow { IllegalStateException("Could not load test item '$name': $it") }
}