Testing with dmengine_headless

Can anybody share tips on using dmengine_headless for integration testing? How do you input commands? How do you verify outputs?

At King we use Cucumber to do something similar to integration testing. There’s a cucumber-lua wire protocol implementation on GitHub from which we have based our code. To this we have added non-blocking sockets that fit nicely with the Defold life-cycle of events. And on top of that we have added code to simulate user input and screen inspection to verify output. Our modifications are currently in a private repo, but perhaps it could be shared.

2 Likes

That sounds like a non-trivial amount of work for a lone developer like me… :sweat:

If you shared your testing solution somehow, that’d be amazing! It’d strengthen the case for Defold for sure.

I’ve gotten too used to automated testing from my web development background. I don’t want to do manual testing for anything anymore.

2 Likes