# Testing with dmengine\_headless

**URL:** <https://forum.defold.com/t/testing-with-dmengine-headless/1772>\
**Category:** Questions\
**Created:** [May 4, 2016, 2:42pm UTC](https://forum.defold.com/t/testing-with-dmengine-headless/1772 "2016-05-04T14:42:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [May 4, 2016, 2:42pm UTC](https://forum.defold.com/t/testing-with-dmengine-headless/1772/1 "2016-05-04T14:42:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 6, 2016, 3:56pm UTC](https://forum.defold.com/t/testing-with-dmengine-headless/1772/2 "2016-05-06T15:56:58Z")

</div>

At King we use [Cucumber](https://cucumber.io/docs/reference) to do something similar to integration testing. There’s a [cucumber-lua wire protocol implementation on GitHub](https://github.com/cucumber/cucumber-lua) 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.

---

<div class="post-metadata">

**Author:** ![unindented](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/unindented/32/718_2.png) [@unindented](https://forum.defold.com/u/unindented)\
**Post date:** [May 6, 2016, 4:16pm UTC](https://forum.defold.com/t/testing-with-dmengine-headless/1772/3 "2016-05-06T16:16:05Z")

</div>

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

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.
