Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

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?