Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Testing Lost Crypt

Use the Unity Test Framework to test an actual game project. It's recommended to complete the General Introduction before attempting Testing Lost Crypt.
Read time 1 minuteLast updated 10 days ago

Welcome to the this training material for the Unity Test Framework (UTF).
The training is structured with a selection of exercises, starting with more basic topics and then expanding on that knowledge.
Each section has a Learning Objectives section, which can help you pick what exercises will teach you new things. The exercises are grouped thematically and their difficulty varies.
This course focus on testing an actual game. Our candidate is the LostCrypt example project.

Course outline

Topic

Description

Setting upSet up a simple Unity 2D project and import a sample project (LostCrypt).
Running a test in LostCryptSet up a simple Play mode test for LostCrypt.
Moving characterUse the Unity InputSystem package to have a generic way of moving your character programmatically in tests.
Reach wand testPerform assertions on your character position and behavior.
Collision testCheck for collisions and make sure that LostCrypt does not have bugs that allow your character to move outside the map.
Asset change testUse a common pattern in game testing to verify if assets change over time.
Scene validation testTest the scene for the presence of specific game objects and make this test use all scenes as fixtures.
Performance testsExtend Unity Test Framework with performance tests.

Additional resources