- Home /
How to run tests on build target with CI?
I'm trying to run unit tests on build targets when I push to my github repo to make sure my library works properly in actual builds, not just in editor. I'm using CircleCI to run EditMode tests utilizing Gableroux's docker images. However, the same workflow fails when I try to run build target tests (WebGL or StandaloneLinux64) thanks to some Unity bug on Linux:
[0808/234504:ERROR:browser_main_loop.cc(161)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[0808/234504:ERROR:sandbox_linux.cc(308)] InitializeSandbox() called with multiple threads in process gpu-process
CircleCI also has a Windows Server 2019 that is available to run .Net 5.0 tests, but I couldn't figure out how to get Unity installed on it.
Is there a way to get build target tests to run through CI? I'm willing to look at other CI services also if it helps.
Answer by GabLeRoux · Aug 14, 2021 at 12:55 PM
Hi, gableroux/unity3d docker images are now deprecated. Refer to https://game.ci/ for more details, documentation and links to example projects and new docker images.
Since you are on github, you might want to have a look at the github actions we developed as your experience will be a bit smoother than doing it on your own with CircleCI.
Also note that the activation license you used for gableroux/unity3d images won’t work anymore, so you will need to follow activation documentation again on https://game.ci but good news is this should be the last time you do it.
For reference, this question was also asked on gitlab here: https://gitlab.com/gableroux/unity3d-gitlab-ci-example/-/issues/162
@GabLeRoux Thanks for the information. Unfortunately, it doesn't actually answer the question of how to run target platform tests or whether it's even possible. I started a forum thread about this. https://forum.unity.com/threads/how-to-run-target-platform-tests-in-docker.1163261/
Your answer
![](https://koobas.hobune.stream/wayback/20220613041444im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can I build a Unity Pro project using Unity free? 1 Answer
Creating Test Doubles for Unity3D Objects 2 Answers
TestRunner playmode timeout (?) 3 Answers
Apple GameCenter authentication: how to test the failure? 0 Answers
In a play mode test, does 'yield return null' block until the end of the next frame? 1 Answer