Customizing and optimizing tests
Run code before a test, parameterize tests, write tests for specific platforms, and strip shader variants.
| Topic | Description |
|---|---|
| Customize tests | Customize how a test captures and compares images. |
| Test specific platforms | Run tests on specific platforms and filter by graphics API, GPU manufacturer, and other platform features. |
| Run code before a test | Execute code before a test runs, for example to set up the scene or load assets. |
| Deduplicate reference images | Reduce storage by sharing reference images across similar platforms. |
| Strip shader variants from test builds | Exclude unused shader variants from test builds to speed up builds and reduce size. |