docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Workflow: Running tests

    There are several ways to run tests in the Test Runner window:

    • Double-click on the test or test fixture name.
    • Use the Run All or Run Selected buttons at the bottom of the window.
    • Right-click on any item in the test tree and choose Run in the context menu to run the test and all of its children.

    When you run a test the test status icon changes to show the result and a counter in the top right corner updates:

    Run Test

    Filters

    If you have a lot of tests, and you only want to view/run a sub-set of them, you can filter them in several ways (see image above):

    • Type in the search box in the top left

    • Click a test class or fixture (such as NewTestScript in the image above)

    • Click one of the test result icon buttons in the top right

    Run tests within Rider

    It is possible to run unit tests in the Unity Test Framework directly from JetBrains Rider.

    For more information, see the JetBrains official documentation and their blog post Run Unity tests in Rider 2018.1.

    In This Article
    Back to top
    Copyright © 2024 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)