{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Custom attributes | Test Framework | 2.0.1-exp.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Custom attributes

    As a part of Unity Test Framework's public API we provide the following attributes:

    Attributes

    Attribute Description
    ParameterizedIgnore A custom alternative to NUnit Ignore that allows ignoring tests based on parameters passed to the test method. See ParameterizedIgnoreAttribute.
    PostBuildCleanup Make changes to Unity or the file system after building. See Setup and cleanup at build time.
    PrebuildSetup Make changes to Unity or the file system before building. See Setup and cleanup at build time.
    PreservedValues Like NUnit Values this is used to provide literal arguments for an individual test parameter. See PreservedValuesAttribute.
    RequirePlatformSupport Require Player build support for the specified platforms in order to run tests. See RequirePlayformSupportAttribute.
    RequiresPlayMode Can be applied to an assembly, fixture, or individual test to indicate that tests under its scope should (or should not) run in the Editor's Play Mode. See RequiresPlayMode.
    TestMustExpectAllLogs Enforces that every log entry must be expected for a test to pass. See TestMustExpectAllLogsAttribute.
    TestPlayerBuildModifier Modify Player build options or split build and run. See TestPlayerBuildModifierAttribute.
    TestRunCallback Assembly level attribute used to subscribe a given type to updates on the test progress. See TestRunCallbackAttribute.
    UnityPlatform Define which platforms tests should run on. See UnityPlatformAttribute.
    UnitySetUp Unity extension of NUnit SetUp to allow Unity yield instructions. See Actions outside tests.
    UnityTearDown Unity extension of NUnit TearDown to allow Unity yield instructions. Actions outside tests.
    UnityTest Unity extension of NUnit Test to allow skipping frames and Unity yield instructions. See UnityTestAttribute.
    In This Article
    Back to top
    Copyright © 2023 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)