Command-line reference
Performing actions before and after tests

Writing tests

Use the Unity Test Framework APIs to write tests specially adapted to the unique features of the Unity Editor and runtime.

Topic Description
Performing actions before and after tests Perform pre-test setup and post-test cleanup to ensure your tests run in the right conditions.
Asserting and comparing Perform assertions with constraints and compare the values of custom Unity types in your tests.
Yield instructions for the Editor Yield instructions for the Unity Editor from your Edit mode tests, using either a set of pre-defined common instructions or defining your own.
Writing parameterized tests Write parameterized tests for data-driven testing.
Writing asynchronous tests Write asynchronous tests with the .NET Task asynchronous programming model.

Additional resources


Did you find this page useful? Please give it a rating:

Command-line reference
Performing actions before and after tests