Running tests from code
Run tests from code with the TestRunnerAPI.
Read time 1 minuteLast updated 11 days ago
You can invoke Unity Test Framework's test runner from code with the class, which lets you control which tests are run and retrieve test data and results.
TestRunnerAPITopic | Description |
|---|---|
| Specify which tests to run | Compose |
| 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. |