-
Notifications
You must be signed in to change notification settings - Fork 56
Home
mikestead edited this page Aug 22, 2011
·
33 revisions
Welcome to the MassiveUnit wiki!
> mkdir ExampleProject
> cd ExampleProject
> haxelib install munit
> haxelib run munit config
> haxelib run munit test
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
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