Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Execution order of test actions

Understand the order in which test actions run relative to one another.
Read time 1 minuteLast updated 22 days ago

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 don't.

Additional resources