Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


8. PlayMode tests in a Player

Run Play mode tests in a standalone platform Player.
Read time 1 minuteLast updated 25 days ago

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.