docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Additional resources

    • Get started
    • Graphics test workflow
    • Sample projects
    In This Article
    Back to top
    Copyright © 2026 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)