Running tests from code
Run tests from code with the TestRunnerAPI.
阅读时间1 分钟最后更新于 1 个月前
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. |