zscript test harness?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

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.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
gramps
Posts: 300
Joined: Thu Oct 18, 2018 2:16 pm

zscript test harness?

Post 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?
Post Reply

Return to “Scripting”