Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Running tests

Run Unity tests from the Editor's Test Runner window, from the command line, or directly from code.
Read time 1 minuteLast updated 12 days ago

Run your Unity Test Framework tests from the Unity Editor's Test Runner window, from code, or from the Editor command line.

Topic

Description

Run tests from the Test Runner windowUse the Unity Editor's built-in Test Runner window to run tests in Edit mode, Play mode, or in a standalone platform Player.
Run tests from the command lineRun tests from the Editor command line with Unity Test Framework's command-line arguments.
Run tests from codeRun tests from code with the TestRunnerAPI.
Run Play mode tests in a PlayerBuild and run your tests on a standalone Player for your target platform.
Modifying a Player build for testsModify the build options for a platform Player built to run tests on.

Additional resources