Munit is a Mule testing framework, it allows mule developers to automate mule app testing in an easy manner.
With Munit you can:
- Create your mule test by writing mule code
- Create your mule test by writing java code.
- Disable flow inbound endpoints
- Disable endpoint connectors.
- Mock outbound endpoints
- Mock Message processors
- Spy any message processor.
- Verify Message processor calls.
- Assert flow exceptions
- Enable or disable particular tests
- It is fully integrated with Maven and Surefire, so you can add your tests to a continuous integration environment.
- Run your tests from eclipse
- See your assertion/error report with Mule stack trace
Munit depends on the public project mule-interceptor-module. So if you are working on master you might want to clone and compile that repository too.
Run:
mvn clean install
with the following maven opts
MAVEN_OPTS="-XX:MaxPermSize=128m"
- [munit-core] (/munit-core) contains the major functionality of munit (mocking, assertion, runner)
- [munit-integration-tests] (/munit-integration-tests) The integration suite for the munit project (good place for examples)
- [munit-maven-tools] (/munit-maven-tools) Munit maven plugin/archetype
- [munit-utils] (/munit-utils) Utilities for mule integration testing
- [munit-examples] (/munit-examples) Usage examples of Munit
- [tooling] (/tooling) Not included in the build. Eclipse plugin