magarena / magarena

Magarena is a single-player fantasy card game played against a computer opponent.
http://magarena.github.io
GNU General Public License v3.0
408 stars 96 forks source link

Groovy test classes? #85

Open lodici opened 9 years ago

lodici commented 9 years ago

If you could define a test using groovy then it would open up that aspect to non-developers since it would not require access to or understanding of the classes in the magic.test source package. It would then allow scripters and play-testers to focus on specific play mechanics. The groovy test scripts could be posted on the forum for discussion and sharing. The scripts could be loaded directly from the UI or specified via command line, in which case a limited version of Magarena would run that only loads the cards specified in the test and displays the duel screen. All other functionality would be disabled while running in this mode.

ShawnieBoy commented 7 years ago

Even as a developer, it can be annoying to have to rebuild just to add a test case which may not need to be included in a build.