Hi Parag, yes, you're absolutely right UnitTesting.Enabled = true is a required constant to activate the UnitTesting module in Mendix.
Even if UnitTesting.RemoteApiEnabled and UnitTesting.RemoteApiPassword are set, the unittests endpoint won’t work unless UnitTesting.Enabled is also set to true. This flag ensures the module is initialized and its APIs are registered at runtime.
Unit tests to run in a container or CI pipeline, make sure all three are set:
UnitTesting.Enabled = true
UnitTesting.RemoteApiEnabled = true
UnitTesting.RemoteApiPassword = <your_password>
Also, ensure the app is not running in Production mode (DTAPMode should be T or A).
Thanks for pointing this out, it’s a crucial step!
So Figuring this out to enable unit tests there is another constant named UnitTesting.Enabled that needs to be set as true to run the tests in above scenario.