Hi Parag,
You can achieve it by enabling the Remote API.
You need to configure Remote API for unit tests and you can consume the service from GITLab. For more details refer Mendix docs
https://docs.mendix.com/appstore/modules/unit-testing/#using-the-remote-api
Regards,
Ajay