Skip to content

TestingAndDebugging

ShawnieBoy edited this page Apr 7, 2015 · 2 revisions

Testing and debugging

To be written

The application accepts some parameters that will be most useful for testing or debugging purposes.

-Ddebug=true

  • Prints debug information to the error output stream.
  • Redirect it to a file by adding '2> logfile.txt'.

-DtestGame=<name_of_your_testclass>

  • Have a look at some of the classes in src/magic/test/ to get the idea. It's pretty self explanatory.

-DselfMode (and -DrndSeed=<long>)

-DparseMissing=true

  • looks through the Magarena\scripts_missing folder and attempts to load each file. An output file parsedCards.log contains cards which have successfully parsed, and parsed_errors.log lists the errors encountered per file. Both are placed in the Magarena\logs folder.
Clone this wiki locally