Mule 4 migration made easy: migrating to MUnit 2

migrating to munit2

It is no secret that migrating to Mule 4 from Mule 3 is a challenge. Mule 4 saw the biggest change in the Mule runtime since its inception. However, with this series of “Mule 4 migration made easy” blogs, I will attempt to soothe any pain you might feel while migrating and provide tips and tricks on how to make the best from Mule 4.

Easier assertions for XML and JSON in MUnit

This is a guest blog from a member of our developer community. Dr. Roger Butenuth is a Senior Java Consultant at codecentric, he has been using Anypoint Platform for five years, with projects ranging from building simple SOAP routing/transformation to introducing the API-led approach to a Fortune 500 company.

Building Mule applications differs from coding in Java. Instead of typing all your code (with a lot of CTRL+space completion),

Testing with MuleSoft’s MUnit: Part 2

mulesoft munit testing

This tutorial continues from Part 1.

Mock is a feature provided by MUnit to mock the behavior of the message processor. Basically, MUnit replaces the actual behavior of message processor with the behavior defined by the user.

There are various scenarios where we can use the Mock Message processor. Imagine we have completed the development of a Mule application and need to test it,

Testing with MuleSoft’s MUnit: Part 1

mulesoft munit

Learn more about MUnit and learn more about how to test Mule.

MUnit is a Mule application testing framework which allows you to build automated tests for your Mule integrations and API’s. MUnit is very well integrated with Anypoint Studio.

Various features available with Mule MUnit:

  • Create and build Mule tests by writing Mule code.
  • Create and build Mule tests by writing Java code.

HowTo (DevOps) – Leveraging Maven For Build Automation

maven deployment

This is second in series of how to DevOps articles, and is a follow-up to the MUnit blog – HowTo(DevOps) – Leveraging MUnit For Test Automation.

A core component of the continuous integration process, that includes the previously discussed test automation framework, is the build process. As soon as the developer commits the code to version control repository, the build tool compiles the source code runs unit and integration tests and generates feedback for the developers.

HowTo (DevOps) – Leveraging MUnit For Test Automation Guide

Traditional integration platforms could get away with providing some command line tools to automate the build and deployment of applications built on their platform. But in the modern world, integration platforms need to encompass the critical API management & cloud components as well, so the scope of continuous integration and continuous delivery tools are no longer just limited to integration applications only.

This also requires support for provisioning integration software and applications in private or public cloud platforms and capability to automate governance of deployed applications.

RAML 1.0 support and enhanced scaffolding: MUnit 1.2.1 Release

Another release, so soon? 
Yes, believe it!

With MUnit 1.2.0, we launched Domain Support, and since then, we have been collecting feedback on the release. We take quality very seriously here – after all, we are a testing framework aimed at ensuring the quality of your code. With that in mind, we looked very carefully at what our users were saying and fixed every bug we could find.

Automatically test RAML-defined API

So,

MUnit 1.2.0 is out!

MuleSoft Image

Did you know that a new version of MUnit is available? This new MUnit release is a joint release with a new version of the MUnit Runtime (1.2.0) and also, a new version of the MUnit Studio Plugin. Some new features of this release include:

  • Multiple suite run
  • MUnit nested folders
  • Support autocompletion for MUnit’s MEL functions
  • Add metadata support to MUnit message processors
  • Create coverage reports from inside Studio
  • Improved documentation
  • Support for Mule domains

MUnit Nested Folders &

Presenting MUnit Coverage

December 22 2015

0 comments

For some time now users were able to see basic coverage in the Anypoint Studio UI.

With the new release of MUnit version 1.1.0, users will now be able to see coverage data of the whole  application in detail, all this by just adding a simple set of configurations to the MUnit Maven Plugin.

MUnit Coverage is the perfect tool for those developers who wish to have a quality metric over their applications.

MUnit 1.0 GA

September 18 2015

0 comments

We’re happy to announce that MUnit 1.0 (GA) is now available.  MUnit is the functional test framework for Mule. This is builds on feedback from our previous release candidate and it contains many quality and usability improvements.