dev: added support of VSC script for checking current card rules (see wiki for instructions)

This commit is contained in:
Oleg Agafonov 2024-06-01 20:06:59 +04:00
parent d1e12595d9
commit 7575c32bb5

View file

@ -2192,6 +2192,13 @@ public class VerifyCardDataTest {
// - multiple searches: name1;class2;name3 // - multiple searches: name1;class2;name3
String cardSearches = "Spark Double;AbandonedSarcophagus"; String cardSearches = "Spark Double;AbandonedSarcophagus";
// command line support, e.g. task runner from Visual Studio Code
// see setup instructions in https://github.com/magefree/mage/wiki/Setting-up-your-Development-Environment#visual-studio-code-vsc
// example: mvn install test "-Dxmage.showCardInfo=${fileBasenameNoExtension}" "-Dsurefire.failIfNoSpecifiedTests=false" "-Dxmage.build.tests.treeViewRunnerShowAllLogs=true" -Dtest=VerifyCardDataTest#test_showCardInfo
if (System.getProperty("xmage.showCardInfo") != null) {
cardSearches = System.getProperty("xmage.showCardInfo");
}
// prepare DBs // prepare DBs
CardScanner.scan(); CardScanner.scan();
MtgJsonService.cards(); MtgJsonService.cards();