Skip to content

Commit

Permalink
Fixed the Tests on Fabric
Browse files Browse the repository at this point in the history
Added Base Markdown Test
  • Loading branch information
MeAlam1 committed Dec 10, 2024
1 parent ef78877 commit 65e7edf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package software.bluelib.test.markdown;

import net.minecraft.gametest.framework.GameTest;
import net.minecraft.gametest.framework.GameTestHelper;

public class MarkdownTestRegistry {

@GameTest
public static void boldTest(GameTestHelper pHelper) {
pHelper.succeed();
}
}
5 changes: 4 additions & 1 deletion fabric/src/main/java/software/bluelib/test/TestRegistry.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
package software.bluelib.test;

import net.fabricmc.fabric.api.gametest.v1.FabricGameTest;
import net.minecraft.gametest.framework.GameTestRegistry;
import software.bluelib.test.markdown.MarkdownTestRegistry;

public class TestRegistry {
public class TestRegistry implements FabricGameTest {

public static void registerTests() {
GameTestRegistry.register(ExampleTest.class);
GameTestRegistry.register(MarkdownTestRegistry.class);
}
}
3 changes: 2 additions & 1 deletion fabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
],
"client": [],
"fabric-gametest": [
"software.bluelib.test.ExampleTest"
"software.bluelib.test.ExampleTest",
"software.bluelib.test.markdown.MarkdownTestRegistry"
]
},
"mixins": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package software.bluelib.test;

import net.minecraft.gametest.framework.GameTestRegistry;
import software.bluelib.test.markdown.MarkdownTestRegistry;

public class TestRegistry {

@SuppressWarnings("deprecation")
public static void registerTests() {
GameTestRegistry.register(ExampleTest.class);
GameTestRegistry.register(MarkdownTestRegistry.class);
}
}

0 comments on commit 65e7edf

Please sign in to comment.