-
Notifications
You must be signed in to change notification settings - Fork 56
Building MUnit from source
Follow instructions here: [http://github.com/massiveinteractive/MassiveUnit]
haxelib install mlib
Note: if you already have munit installed then mlib will already be installed locally
MLib provides a simple framework for the MUnit build tool, as well as it's own build tool for simplifying the creation, packaging and installation of the MUnit haxelib package for testing.
MUnit is separated into several sub projects:
This is the main unit testing framework. It contains a src and test package as well as hxml files for build and testing
This is the neko source for the build tool used with running 'haxelib run munit'
It contains the following:
- src - neko source
- test - unit tests (rather sparse ATM)
- template - compile time file templates and help content used by the build tool
- resource - runtime resources for the html print clients
This contains a simple example project that can be run and tested across all supported targets
To build, test and install the munit haxelib package run the build file in the top level package
haxe build.hxml
This build file does the following
- Generates an 'AllClasses.hx' containing references to all classes in a sub project (useful as a smoke test to ensure all code included is valid)
- Builds both the core and tool sources
- Compiles as runs unit tests for both sub projects
- Packages up a haxelib.zip and installs locally
Note: If you have any problems make sure to create a 'bin' directory in the top level directory
To just run unit tests
haxe test.hxml