Skip to content

Instantly share code, notes, and snippets.

@aimtiaz11
Last active October 14, 2022 14:20
Show Gist options
  • Save aimtiaz11/b87767f64ffb659008d5c8165a2c51ec to your computer and use it in GitHub Desktop.
Save aimtiaz11/b87767f64ffb659008d5c8165a2c51ec to your computer and use it in GitHub Desktop.
Making Munit work in Studio 7 (Mule 4)

Making Munit work in Studio 7 (Mule 4)

If you are having trouble running Munit in Anypoint Studio, try updating your Studio version and application's munit dependencies to latest versions.

After doing updating to below updates, I could run & debug Munit tests in my Anypoint Studio.

Prior to that, I was getting all kind of weird internal errors.

My Setup (as of 14th October 2022):

  1. Anypoint Studio: 7.13.0

In your pom.xml of your mule application:

  1. Mule Runtime: 4.3.0 (higher the better)
  2. munit-maven-plugin: 2.3.13
  3. munit-runner and munit-tools dependency is 2.3.11:
<dependency>
    <groupId>com.mulesoft.munit</groupId>
    <artifactId>munit-runner</artifactId>
    <version>2.3.11</version>
    <classifier>mule-plugin</classifier>
    <scope>test</scope>
</dependency>

<dependency>
    <groupId>com.mulesoft.munit</groupId>
    <artifactId>munit-tools</artifactId>
    <version>2.3.11</version>
    <classifier>mule-plugin</classifier>
    <scope>test</scope>
</dependency>
  

Links:

Munit Release Notes: https://docs.mulesoft.com/release-notes/munit/munit-release-notes

Munit-tools: https://mvnrepository.com/artifact/com.mulesoft.munit/munit-tools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment