Skip to content

Compiling and running tests

massiveinteractive edited this page Dec 22, 2010 · 12 revisions

The test command is the main command used when developing with unit tests to updates, compiles and runs all targets within a hxml build file

haxelib run munit test

By default this command uses the settings from the .munit settings in the project so you don't need to specify anything.

Alternatively you can specify a single target within the build file through a -[platform] flag. Valid options are -swf, -swf9, -neko and -js

haxelib run munit test -swf9

To use this command outside a munit project you can also specify manual paths to the hxml, bin, src and report paths you are working with.

Run the inline help for detailed instructions:

haxelib run munit help test