Can you run play mode tests on devices in Cloud Build?

I noticed that all the play mode tests run from the cloud on different platforms are just running in the Mac OS editor. Is it possible to run them on other devices in the cloud?

Thank you,
Patrick

Hi @patrickreece ,

Unfortunately, it is not possible to run Playmode tests on a physical device in the Cloud. Playmode tests are invoked via the Test Runner on the server where the build is run. They should still be run for the specific platform that you are targeting. Is this not the case?

Well if you log the Application.platform, it is always Mac OS. But I assume it does set up the preprocessor defines for each platform. Thank you!

I’m doing the same, also using AssetDatabase (UnityEditor framework) to instantiate prefabs during my playmode test, would that cause an issue in the cloud build ?
I’m not able to run my build it’s timing out