Generating Test Cases in Unity Engine: A Case Study of My Indie Game – Cube

Authors

  • Gavin Chong Jia Hao Universiti Tun Hussein Onn Malaysia
  • Mohd Zanes Sahid Universiti Tun Hussein Onn Malaysia

Keywords:

Automated Test Case Generation, Random Search-Based Testing, Model-Based Testing

Abstract

The development of video games requires extensive testing to ensure functionality and player satisfaction. However, manual testing of game mechanics can be time-consuming and prone to errors. This project focuses on addressing the inefficiencies in manual testing by introducing automated test case generation techniques for game mechanics validation. Traditional manual testing approaches often fail to cover all possible game states and transitions, leading to undetected bugs and suboptimal gameplay experiences. To address this, the project employs two different automated test case generation methods, which are random search-based testing and model-based testing to evaluate game mechanics with maximized path exploration and path logging. The generated test cases will then be executed using Unity's Test Framework to verify their accuracy. The approach is applied to Cube, an indie 3D puzzle-platformer game where the player navigates through a cube-shaped environment to reach specific targets while avoiding obstacles and enemies. The results show that model-based testing is better than random-based testing in terms of execution time and test coverage. However, it is recommended to have hybrid approach by combining both methods to ensure higher defect detection efficiency. Additionally, this project demonstrates the applicability of automated testing methods in indie game development, setting a foundation for broader adoption in similar domains.

Downloads

Download data is not yet available.

Author Biography

  • Mohd Zanes Sahid, Universiti Tun Hussein Onn Malaysia

     

Downloads

Published

06-07-2026

Issue

Section

Articles

How to Cite

Chong Jia Hao, G., & Sahid, M. Z. (2026). Generating Test Cases in Unity Engine: A Case Study of My Indie Game – Cube. Applied Information Technology And Computer Science, 7(1), 596-607. https://publisher.uthm.edu.my/periodicals/index.php/aitcs/article/view/20310