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):
- Anypoint Studio:
7.13.0
In your pom.xml
of your mule application:
- Mule Runtime:
4.3.0
(higher the better) - munit-maven-plugin:
2.3.13
munit-runner
andmunit-tools
dependency is2.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>
Munit Release Notes: https://docs.mulesoft.com/release-notes/munit/munit-release-notes
Munit-tools: https://mvnrepository.com/artifact/com.mulesoft.munit/munit-tools