Version: Unity 6.2 (6000.2)
Language : English
Run tests from the command line
Specify which tests to run

Running tests from code

You can invoke Unity Test Framework’s test runnerThe Test Framework package (formerly called the Test Runner) is a Unity tool that tests your code in both Edit mode and Play mode, and also on target platforms such as Standalone, Android, or iOS. More info
See in Glossary
from code with the TestRunnerAPI class, which lets you control which tests are run and retrieve test data and results.

Topic Description
Specify which tests to run Compose Filter objects for the TestRunnerAPI to determine which tests to include in a test run.
Retrieving test results Register to receive callbacks from the test runner at the start or finish of an active test run or individual test.
Retrieve the list of tests Retrieve the test tree for a given test mode (Edit mode or Play mode) from the test runner.

Additional resources

Run tests from the command line
Specify which tests to run
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961