Skip to content
Permalink
Browse files

Disable full block map testing for faster builds

  • Loading branch information...
kenzierocks committed Jul 16, 2019
1 parent 6941473 commit edaddfef9048c3f713d6f416b5adbd55d79564ac
@@ -41,6 +41,12 @@
*/
public class BlockMap extends AbstractMap<BlockVector3, BaseBlock> {

/* =========================
IF YOU MAKE CHANGES TO THIS CLASS
Re-run BlockMapTest with the blockmap.fulltesting=true system property.
Or just temporarily remove the annotation disabling the related tests.
========================= */

public static BlockMap create() {
return new BlockMap();
}
@@ -66,8 +66,8 @@

// For better coverage assurance, increase these values for a local Gradle run.
// Don't do it for IntelliJ, it'll probably run out of memory.
private static final int DIVISIONS_XZ = Integer.getInteger("ordered.block.divisions.xz", 4);
private static final int DIVISIONS_Y = Integer.getInteger("ordered.block.divisions.y", 3);
private static final int DIVISIONS_XZ = Integer.getInteger("variedvecs.divisions.xz", 4);
private static final int DIVISIONS_Y = Integer.getInteger("variedvecs.divisions.y", 3);

private static final int XZ_STEP = (WORLD_XZ_MINMAX * 2) / DIVISIONS_XZ;
private static final int Y_STEP = WORLD_Y_MAX / DIVISIONS_Y;
@@ -38,6 +38,7 @@
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

@@ -255,6 +256,7 @@ void insertsOnMerge() {

@Nested
@DisplayName("after having an entry added")
@EnabledIfSystemProperty(named = "blockmap.fulltesting", matches = "true")
class AfterEntryAdded {

// Note: This section of tests would really benefit from

0 comments on commit edaddfe

Please sign in to comment.
You can’t perform that action at this time.