{!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} 8. PlayMode tests in a Player | Test Framework | 1.3.9
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    8. PlayMode tests in a Player

    Learning objectives

    This section will teach you how to run Play Mode tests in a Standalone player on your machine.

    Intro and motivation

    A huge area in our quality assurance using automated testing is the ability to test on different types of platforms. This is both useful for us and our customers, allowing them to verify their application on everything from phones to consoles.

    The simplest setup to run on a platform is to run as standalone on your own computer. If you have the Unity standalone platform support for your OS installed, then you can run your Play Mode tests by clicking the Run all in player button. For more detailed instructions, see Run play mode tests in a standalone player.

    Exercise

    Import the sample 8_PlayModeTests_InPlayer.

    This project contains the solution to the previous exercise, which is just a simple Play Mode test.

    Execute the test in your standalone player by clicking the Run all in player button in the Play Mode tab.

    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)