Implementation ModuleTestingEnvironment -- Integration testing with in-process Engine objects

kaen

The Bug Whisperer
Contributor
Architecture
Logistics
I've been working on a module to support integration testing. Basically it wraps up some helpers for creating instances of TerasologyEngine, loading a set of modules and getting everything to the in-game state. From there you can write test code exactly like module code, and it will run in the context of a real server rather than a mocked approximation of one. It's nearly ready for human consumption so thought I'd post about it here.

There's an overview in the README, and examples in the test suite (of course).
https://github.com/kaen/ModuleTestingEnvironment
https://github.com/kaen/ModuleTestingEnvironment/tree/master/src/test/java/org/terasology/moduletestingenvironment

Bugs and feature requests should go on Github, but happy to answer general questions here as needed.
 
Last edited:

Cervator

Org Co-Founder & Project Lead
Contributor
Design
Logistics
SpecOps
Awesome documentation and functionality! Engine PR has been merged and the unrelated issue fixed as well :)

Now just need to get the module added properly :D
 
Top