Version: Unity 6.2 (6000.2)
Language : English
Setting up and cleaning up at build time
Asserting and comparing

Execution order of test actions

When writing tests, it is possible to avoid duplication of code by using the SetUp and TearDown methods built into NUnit. The Unity Test Framework has extended these methods with extra functionality, which can yield commands and skip frames, in the same way as UnityTest.

Action execution order

The actions related to a test run in the following order:

The list of actions is the same for both Test and UnityTest.

Execution order flow

The order of execution for test actions and callbacks, with those that re-run on domain reload differentiated from those that dont.
The order of execution for test actions and callbacks, with those that re-run on domain reload differentiated from those that don’t.

Additional resources

Setting up and cleaning up at build time
Asserting and comparing
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961