From 76c0124052e0f6228cdca0b5b13c3d7e8f825db7 Mon Sep 17 00:00:00 2001 From: xenohedron <12538125+xenohedron@users.noreply.github.com> Date: Sat, 14 Jun 2025 00:34:32 -0400 Subject: [PATCH] tests: enable properties for verify check parameters --- .../java/mage/verify/VerifyCardDataTest.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java index 9c9afcfc5bd..2224d8cc4f8 100644 --- a/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java +++ b/Mage.Verify/src/test/java/mage/verify/VerifyCardDataTest.java @@ -83,10 +83,22 @@ public class VerifyCardDataTest { private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class); - private static final String FULL_ABILITIES_CHECK_SET_CODES = "BLC"; // check ability text due mtgjson, can use multiple sets like MAT;CMD or * for all - private static final boolean CHECK_ONLY_ABILITIES_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages + private static String FULL_ABILITIES_CHECK_SET_CODES = "BLC"; // check ability text due mtgjson, can use multiple sets like MAT;CMD or * for all + private static boolean CHECK_ONLY_ABILITIES_TEXT = false; // use when checking text locally, suppresses unnecessary checks and output messages private static final boolean CHECK_COPYABLE_FIELDS = true; // disable for better verify test performance + // for automated local testing support + static { + String val = System.getProperty("xmage.tests.verifyCheckSetCodes"); + if (val != null) { + FULL_ABILITIES_CHECK_SET_CODES = val; + } + val = System.getProperty("xmage.tests.verifyCheckOnlyText"); + if (val != null) { + CHECK_ONLY_ABILITIES_TEXT = Boolean.parseBoolean(val); + } + } + private static final boolean AUTO_FIX_SAMPLE_DECKS = false; // debug only: auto-fix sample decks by test_checkSampleDecks test run private static final Set checkedNames = new HashSet<>(); // skip already checked cards @@ -3338,4 +3350,4 @@ public class VerifyCardDataTest { System.out.println(String.format("ALL DONE, found and write %d combos", allCombos.size())); } -} \ No newline at end of file +}