Can we kick off unit tests in Mendix automatically after a new commit? How to achieve it?

0
Hi All, Does anyone have any idea about unit testing? I am trying to automate all the unit tests after every commit. By default, we have to run that manually but I want that automatically to be run.  How can we achieve It ?   Thanks, Sujat 
asked
2 answers
2

Hello Sujat,

Please resort to https://docs.mendix.com/appstore/modules/unit-testing#5-running-unit-tests-through-the-remote-api to run your tests after a commit. 

To retrieve commits use the team server api https://docs.mendix.com/apidocs-mxsdk/apidocs/team-server-api#3-3-retrieve-revisions 

answered
1

If you want to do something after every commit (of an object of a certain entity) you can use an event handler:

https://docs.mendix.com/refguide/event-handlers

 

answered