Now here in this article we will see how to write MUnit test cases for flows that were created with APIkit RAML.
Application takes a RAML file and maps it to an implementation of an API in Mule.
We will see the implementation routes that handles incoming request based on Http methods (GET, POST, PUT, DELETE) and URL using MUnit.
Now let’s start writing MUnits for routing flows:
Step 1: Generate Munit Flow from Apikit Flow:
Right click on APIKit router–>Create Test Suite for Munit
Step 2: Run MUnit Suite:
Step 3: Flow execution sequence
Step 4: Coverage report:
After running MUnit you will get MUnit coverage report like shown above. But If you have noticed APIKit main flow is having very less coverage percentage and it only covers resource flows. So, how we can increase or get the MUnit coverage for APIKit main flow which includes exception handling processors?
Hi there, I found your site via Google while searching for a related topic, your website came up, it looks good. I have bookmarked it in my google bookmarks.
I think other site proprietors should take this website as an model, very clean and excellent user friendly style and design, let alone the content. You are an expert in this topic!
Hi Manish Sir Good day to you , will you please share your articles in Medium and can u please share Linkedin profile of yours