Page 1 of 1

zscript test harness?

Posted: Thu Jan 17, 2019 2:45 am
by gramps
I want to write some tests for some zscript code. The code I want to test doesn't rely on any game stuff being set up.

So I'm thinking I want to launch it with -norun and the test harness would be a pk3-folder with a mapinfo lump to load an event handler, and that event handler runs all the tests. Or maybe the mapinfo lump is rewritten for each test, to load the right class for that test, and the game is launched multiple times.

Does anyone already have something like this in place? If not, does that sound about right, or is there a simpler way to run some zscript from the command line?