tests: enable properties for verify check parameters

This commit is contained in:
xenohedron 2025-06-14 00:34:32 -04:00
parent 24f030fa71
commit 76c0124052

View file

@ -83,10 +83,22 @@ public class VerifyCardDataTest {
private static final Logger logger = Logger.getLogger(VerifyCardDataTest.class); 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 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 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 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 boolean AUTO_FIX_SAMPLE_DECKS = false; // debug only: auto-fix sample decks by test_checkSampleDecks test run
private static final Set<String> checkedNames = new HashSet<>(); // skip already checked cards private static final Set<String> 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())); System.out.println(String.format("ALL DONE, found and write %d combos", allCombos.size()));
} }
} }