zscript test harness?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

zscript test harness?

Postby gramps » Thu Jan 17, 2019 3:45 am

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?
gramps
 
Joined: 18 Oct 2018

Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests