Graphics Test Framework package
Render test images from your project and test them against reference images to detect rendering regressions across platforms, graphics APIs, and hardware configurations.
The Graphics Test Framework package extends the Unity Test Framework, which uses a Unity integration of the open-source NUnit unit testing library.
| Topic | Description |
|---|---|
| What's new | Discover new features and performance improvements in the Graphics Test Framework package. |
| Install | Install the Graphics Test Framework package in your project. |
| Upgrading | Upgrade the Graphics Test Framework package to a newer version. |
| Get started | Add two example graphics tests to your project using the Graphics Tests window. |
| Graphics test workflow | Follow this workflow to write a test that compares a texture or a capture of your scene to a reference image. |
| Writing graphics tests | Create scene tests, rendering code tests, Unity Editor window tests, and shader tests. |
| Customizing and optimizing tests | Run code before a test, parameterize tests, write tests for specific platforms, and strip shader variants. |
| Sample projects | Learn the structure of a project that uses the Graphics Test Framework. |
| Reference | Explore the properties and settings you can use to customize graphics tests. |
| Glossary | Learn the key terms the Graphics Test Framework package uses. |