Skip to content

Commit 4dbab2e

Browse files
committed
Mark failing tests as requiring MC running
1 parent dc5455f commit 4dbab2e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/test/java/dev/compactmods/crafting/tests/recipes/components/CCRecipeComponentsTests.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import dev.compactmods.crafting.recipes.components.EmptyBlockComponent;
1111
import net.minecraft.block.Blocks;
1212
import org.junit.jupiter.api.Assertions;
13+
import org.junit.jupiter.api.Tag;
1314
import org.junit.jupiter.api.Test;
1415

1516
public class CCRecipeComponentsTests {
@@ -37,6 +38,7 @@ void CanFetchComponentsFresh() {
3738
}
3839

3940
@Test
41+
@Tag("minecraft")
4042
void CanRegisterAndFetchBlocks() {
4143
CCMiniRecipeComponents components = new CCMiniRecipeComponents();
4244
final BlockComponent BLOCK_COMPONENT = new BlockComponent(Blocks.GOLD_BLOCK);
@@ -57,6 +59,7 @@ void CanRegisterAndFetchBlocks() {
5759
}
5860

5961
@Test
62+
@Tag("minecraft")
6063
void EmptyBlocksAreActuallyEmpty() {
6164
CCMiniRecipeComponents components = new CCMiniRecipeComponents();
6265
components.registerBlock("G", new BlockComponent(Blocks.GOLD_BLOCK));
@@ -91,6 +94,7 @@ public RecipeComponentType<?> getType() {
9194
}
9295

9396
@Test
97+
@Tag("minecraft")
9498
void CanGetNumberOfComponents() {
9599
CCMiniRecipeComponents components = new CCMiniRecipeComponents();
96100
Assertions.assertEquals(0, components.size());

src/test/java/dev/compactmods/crafting/tests/recipes/setup/RecipeSetupTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@
99
import net.minecraftforge.common.util.FakePlayerFactory;
1010
import net.minecraftforge.fml.server.ServerLifecycleHooks;
1111
import org.junit.jupiter.api.Assertions;
12+
import org.junit.jupiter.api.Tag;
1213
import org.junit.jupiter.api.Test;
1314
import org.junit.jupiter.api.function.Executable;
1415

1516
public class RecipeSetupTests {
1617

1718
@Test
19+
@Tag("minecraft")
1820
void BaseRecipeType() {
1921
final ResourceLocation testId = new ResourceLocation("compactcrafting", "test");
2022
BaseRecipeType<RecipeBase> type = new BaseRecipeType<>(testId);
@@ -26,6 +28,7 @@ void BaseRecipeType() {
2628
}
2729

2830
@Test
31+
@Tag("minecraft")
2932
void FakeInventory() {
3033
FakeInventory inv = new FakeInventory();
3134
Assertions.assertNotNull(inv);

0 commit comments

Comments
 (0)