EliteMasterEric / EnigmaEngine

A fork of FNF's Kade Engine that combines its QoL features with true mod support and new gameplay enhancements
https://enigmaengine.github.io/
Other
12 stars 1 forks source link

Enhancement: Create a Unit Test Suite #42

Closed EliteMasterEric closed 2 years ago

EliteMasterEric commented 2 years ago

Not even sure how to do this for a GUI application but we should be able to do it.

Make stuff to ensure that basic menus load, inputs work and are precise.

<haxelib name="munit" /> // Provides unit testing suites.
<haxelib name="hamcrest" /> // Provides robust matching and assertions.
EliteMasterEric commented 2 years ago

Unit tests build and actions work. Can't seem to figure out coverage though.

EliteMasterEric commented 2 years ago

Gonna close this since it's 'done'.

As a note to my future self, there is a test suite, and a Github action which executes it, which is nice.

However, the game doesn't seem to compile when using the munit command to execute tests; it stalls out midway through. The lime command works and runs the tests, but doesn't generate a code coverage report.