NanoTest is a light weight test library. Its interface is similar to the haxe.unit testing framework, but it can run as pre-compilation macro and can output test failures as compiler warnings or errors.
To install, run:
haxelib install nanotest 1.0.1
See using Haxelib in Haxelib documentation for more information.