Search Unity

Question How to setup Unity3D cloud build to run Test Runner unit tests?

Discussion in 'Testing & Automation' started by marosko, Dec 8, 2017.

  1. marosko

    marosko

    Joined:
    Sep 28, 2014
    Posts:
    3
    I have a Unity3D (2017.2) project and I've created a bunch of of Test Runner EditMode tests. (I am able to run them through the Unity Editor - TestRunner->EditMode).

    However, I would like those tests tun run during the Unity Cloud Build process. All my tests are inside the folder: Assets\Editor\Tests\ Their namespace is: Tests.EditorTests.TEST_DOMAIN.SOME_TEST_CLASS

    Inside the Unity Build Cloud -> Config, I've set the "Unit Test Method" to be "Tests.EditorTests". This of course does not work, as it requires a public static method which will then runs all tests.

    Is there a way how to run all tests without explicitly calling them from the UnitTestMethod? Or do I need to get list of all UnitTests classes and their test methods with Assemble and Reflexion?