Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

MUnit Maven Plugin Configuration Reference

The MUnit Maven Plugin offers a set of optional parameters that can be configured.

Table 1. Maven Plugin Parameters
Name Type Description

argLines

List

Additional JVM argument lines to set on the test run.

coverage

Configuration

Coverage configuration to be set on the test run.

dynamicPorts

List

Dynamic ports to be set on the test run.

enableSurefireReports

boolean

Set value to true to generate MUnit test results in the surefire format.
Default value: true

munitTest

String

Name of the MUnit tests to run.

munitTags

String

Name of the MUnit tags. Only tests tagged with these names will run.

skipMunitTests

boolean

Set to true when you want to skip all MUnit tests.
Default value: false

skipAfterFailure

boolean

Skip all tests if one fails.
Default value: false

munitTestsDirectory

File

Directory where the MUnit tests reside.
Default value: ${project.build.directory}/test-mule/munit

runtimeVersion

String

Version of the Mule runtime in case By default it runes with the mule-version defined in the pom.xml file of the mule-artifact.json.

runtimeProduct

String

Type of runtime. Expected values are MULE for community edition, and MULE_EE for enterprise edition.
By default, this value is taken from the requiredProduct parameter in the mule-artifact.json file.

environmentVariables

Map

Additional environment variables to be set on the test run.

redirectTestOutputToFile

boolean

Set value to true to redirect the MUnit tests standard output to a file.
Default value: false

systemPropertyVariables

Map

System properties to be set on the test run.

testOutputDirectory

File

Directory where the test outputs will be written to.
Default value: ${project.build.directory}/munit-reports/output/

In this topic: