Skip to content
massiveinteractive edited this page Dec 22, 2010 · 33 revisions

Welcome to the MassiveUnit wiki!

munit testing framework

munit uses haXe metadata to execute test cases at runtime. To create a new test case, simply create an empty class and use the following metadata syntax:

@Test
public function testExample():Void
{
	Assert.isTrue(true);
}

For detailed information on TestCase metadata see Working with test classes

munit build tool

The munit build tool makes working with unit tests easier and quicker.

To check that the tool is installed

haxelib run munit

This should display summary help information for all the commands. We recommend using the inbuilt help for detailed usage and instructions

haxelib run munit help <command>

More information