MUnit 2.0.0-BETA Changes

We’ve introduced several changes to the MUnit 2.X syntax. Please find below a list of those changes.

MUnit config

For version 2.1 and later see Enable Flow Sources.
  • We removed the attributes mock-connectors and mock-inbounds. They have been replaced with disableFlowSources.

  • We’ve added the exclude-flow-sources

MUnit config for 1.x
<munit:config name="munit"
MUnit config for 2.x
<munit:config disableFlowSources="true">
	  <munit:flow value="mockedFlow"/>
      <munit:flow value="mockedFlow2"/>

Before/After Flows

This section refers to before-suite, after-suite, before-test, after-test.
There are no change to the syntax of these scopes, but while in MUnit 1.x we allow as many of any of them as the user wanted in MUnit 2.x we allow only one of each per MUnit Test Suite file.

This restriction will be enforced at deployment and the deploy of the application will fail should any such scope is present more than one time.

Test Flow

Test Syntax for MUnit 1.x
<munit:test name="test-1"
  description="Descriptive text"/>
Test Syntax for MUnit 2.x
<munit:test name="test-1"
  description="Descriptive text">





Processors: NameSpace Changes

Processors will change of name space to munit-tools.

Was this article helpful?

💙 Thanks for your feedback!

Edit on GitHub
Give us your feedback!
We want to build the best documentation experience for you!
Help us improve with your feedback.
Take the survey!