Skip to content


Creating or Editing Tests

For Unity, there are two testing methods; Play Mode and Edit Mode. Edit mode tests are in the following folder:


Play mode tests are in the following folder:


To create a test script, navigate to the corresponding folder and right-click in the project window (normally at the bottom of the screen). Go to Create > Testing > (Test Mode) Test C# Script. This will create script in that directory and simply double click to edit the script.

Edit Mode Tests

Edit Mode tests are currently NOT used in this project. But this can easily be added back into the project when needed by adding the following into the .gitlab-ci.yml file:

  <<: *test
    TEST_PLATFORM: editmode

Running Tests

Tests can be run within the Unity UI directly.

  1. Click Window on the top navigation bar.
  2. Click Test Runner.
  3. Click on PlayMode and then Run All.
  4. Click on EditMode and then Run All.

These tests will automatically run on the GitLab CI Pipeline once a commit has been pushed.