Currently we use the mendix deploy api to deploy our applications. After the deploy we use the webservice exposed in the mendix unit testing module to kick off the unit tests. If certain unit tests fail the webservice returns the failed unit tests in json format, which we output to the console. We use Jenkins to run this pipeline (deploy - unit test).
As far as I know mendix currently does not allow you to run your unit tests in the compile step of the application (like you would normally do with something like Maven), so this was the best solution we came up with.
Hi Bhupesh,
I believe there is a API for the UnitTesting Module. Maybe that way you could automate it the way you want.
Check the documentation tab :
https://appstore.home.mendix.com/link/app/390/
grtz,
Robert
Here is a link to the Remote API of Mendix Unit Tests:
https://docs.mendix.com/appstore/modules/unit-testing/#using-the-remote-api
Hi Bhupesh, yes unit testing can be automated in Mendix using the Mendix Unit Testing module available on the Mendix Marketplace.
1. Install the Unit Testing Module - https://marketplace.mendix.com/link/component/390
2. This module provides a framework to write, organize, and run tests for microflows, Java actions, and logic.
3. In the TestCase folder, create microflows that represent your unit test cases.
4. The module provides a simple web-based interface to run tests manually from the browser and view results.
Useful during development or manual QA checks.
I hope this one helps you :)