Docs

Test Framework

Edit & play mode tests.

What is Test Framework

The Unity Test Framework runs NUnit-based edit-mode and play-mode tests from the Test Runner window.

Install

package id
text
com.unity.test-framework

Usage

csharp
csharp
[Test]
public void Adds() => Assert.AreEqual(4, 2 + 2);

Docs

Official documentation: Test Framework.