You can invoke Unity Test Framework’s test runner 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. |