UnityGame/Library/PackageCache/com.unity.test-framework/Documentation~/course/play-mode-tests-in-player.md
2024-10-27 10:53:47 +03:00

1.1 KiB

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.