Skip to content

Commit 67ac089

Browse files
authored
Merge pull request #604 from mulesoft/W-20967527-munit-mule-flows-fa
W-20967527-munit-mule-flows-fa
2 parents 75497a8 + 4d83fd5 commit 67ac089

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/ROOT/pages/vibes-prompt-examples.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,3 +424,11 @@ components:
424424
.. *Initiates password reset*: `POST /reset-password` sends a reset email if the user exists.
425425
.. *Secures endpoints*: All protected routes use JWT bearer authentication.
426426
.. *Defines schemas*: `UserRegistration` and `UserLogin` schemas include input validation like `minLength` and `format: email`.
427+
428+
== MUnit tests for Mule flows
429+
430+
Your Mule application exposes APIs and orchestrates calls to backend services. To improve reliability, create MUnit tests for a flow that processes requests, transforms payloads, and returns responses under different conditions.
431+
432+
To generate tests for this task, enter a message like:
433+
434+
`Create MUnit tests for the <flow-name> flow. Add one test for the happy path, one test for invalid input, and one test for a downstream service failure. Mock the external dependencies, use sample event payloads, and verify the expected response payload and status code in each case.`

0 commit comments

Comments
 (0)