Aug 13, 2020
Reaction score
First Language
Primarily Uses
I'm a major believer in automated testing (particularly for large scale projects), but with RPG maker it seems a bit tricky. I suppose unit testing could work if we isolate our own .js code from the rest of RPG maker and use mocks and an integration layer. However if you do most of your edits in the RPG maker editor, that seems to produce mostly JSON data files, which get handled by the core .js files of RPG maker which are hard to unit test.

I tried throwing some GUI testers at the final deployed executable of my tutorial project, but all they can seem to access is a single opaque window where all the game contents are rendered. They can't seem to get at things like the buttons on the title screen. After doing some research I suspect automated testers that rely on image recognition technology like Sikuli could probably handle it, but I've heard such testing can be more maintenance work than testers that manage to lookup objects by ID.

The last thing I tried was running the main .js files with jsdom to simulate a web browser environment, and made some progress but haven't quite got it working yet. I kind of like this idea as it might allow us to run unit tests on the main .js files and integration tests on plugins and it would theoretically run nice and fast without any rendering being done.

I figured I'd share notes to see if anyone else has figured this out or has other ideas I haven't considered yet.

Latest Threads

Latest Profile Posts

edit: third time's the charm? some graphic text I whipped up that I like for the mid-game intertitle, now with all of the actual letters in the stupid damn words I was trying to spell :uswt2:
It is december, my dudes

I love it when a plan comes together, and especially when Ruby decides to work with me when I decide to code. :kaopride:
Got sick and had to take a few days off work in order to get tested and make sure it wasn't the big one. Felt a lot better today and thought to myself, "Hey now, I can't get tested until tomorrow anyway, I can get so much character art done today!"
....I watched Youtube and browsed this site for hours instead.
But at least I'm doing the art now! Yaaaaay.......

Forum statistics

Latest member