Warm tip: This article is reproduced from serverfault.com, please click

Mule Flow only for Integration Testing

发布于 2020-11-30 06:42:55

I have got the Mule 4 application which is driven by Scheduler to schedule every 30 minutes. I have added http listener under the file test-listener.xml just for invoking it for building the integration testing.

I want the test-listener.xml to be deployed only into non-production environment. How can I achieve it in Mule 4.3.0 Runtime

Thanks

Questioner
Infinity
Viewed
0
aled 2020-12-01 04:35:16

Adding an HTTP Listener to test the flow is not a good practice. If you are interested on just testing the flow just use MUnit to implement tests of the flow. If you are interested on testing the scheduler execution you can use this method with MUnit: https://docs.mulesoft.com/munit/2.3/test-flow-with-scheduler-cookbook