skillworkspaceTestingintermediate
MUnit Test Generator
Generates MUnit test suites for Mule flows including happy path, error cases, and mocked dependencies.
(0 reviews)
0 forksMC
by MuleSoft CommunitySkill Instructions
When the user asks to create tests for a Mule flow:
- Read the target flow XML to understand processors and dependencies
- Create test file in src/test/munit/ following naming convention: {flow-name}-test-suite.xml
- For each test case:
- Set up mock processors for external connectors (DB, HTTP, Salesforce)
- Define test event with sample payload and attributes
- Execute the flow under test
- Assert response payload, status code, and variable values
- Include test cases for:
- Happy path with valid input
- Invalid input (validation errors)
- Downstream system failure (connection refused, timeout)
- Verify error handler behavior in failure cases
Community Results
0 people tried this
Sign in to share your experience with this prompt.
Tags
munittestingtest-generationmocks
