UniTester

UniTester is a Testing API that performs various types of validation of your Unity game at runtime. Test target different aspects of your Unity project including performance tests, tests related to objects, tests for the camera, tests for audio implementation, frame comparison, as well as others. The asset comes with sample scenes and sample test scripts. The API is implemented in a DLL to include in your unity project for C# scripts. The scripts execute at runtime where some use the MonoBehavior’s Start() and Update() by implementing MonoBehavior classes in the DLL classes. The results are logged to the console and game screen and user Debug.Assert for validation based on results. Thus, you can implement the tests while your game is running to get fine tune details of different aspects of your game while you are running it. The usage of the API is very straightforward. For each test class in the UniTester.dll, you simply need to create an object of the respective test classes, and then call .Start(). This can be implemented in your script’s Start() method or Update() method. To stop the test’s execution, simply call .Stop(). Many tests will perform repeated validations during game execution, so you can see different results depending on what is occurring in your game at that time. Debug Log statements with results and details are logged to the console. Debug.Assert is used to determine PASS/FAIL. If the test FAILs, an error is shown in the console log prefixed with ‘FAIL’ and then failure details.


see documentation for each test details and examples.