Assertion scripts for GameMaker Studio 1.x
assert_not_equal("untested code", "good code", "You should have used GMAssert!");
GMAssert is a library containing useful assertions for debugging and automated unit testing. You can use it to alert you to undesirable runtime conditions, pause the debugger at that point for further inspection, or quickly test code for expected behaviour.
- GameMaker Studio 1.4.9999 only
If you use GameMaker Studio 2.x, please see GMAssert 2.
- Download the latest GMEZ file from the Releases page.
- In the IDE, right-click on Extensions > Import Extension and select your downloaded GMEZ file.
- Optional: If you wish to use the debugger or customize failure handling behaviour, double-click the GMAssert extension in the IDE, select the Import Resources tab, and click "Import All". This will add the
__GMA_BREAKPOINT__
script needed to hook into assertion error messages.
- Clone this repository.
- Open the workbench in GameMaker Studio and make your additions/changes to the
GMAssert
extension. Also add corresponding tests to thegmassert_test
. - Open a pull request here.