Enhancing NeuroEvolution-Based Game Testing: A Branch Coverage Approach for Scratch Programs

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Sohail, Khizra, Jilani, Atif Aftab Ahmed, Butt, Nigar Azhar
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908448064536576
author Sohail, Khizra
Jilani, Atif Aftab Ahmed
Butt, Nigar Azhar
author_facet Sohail, Khizra
Jilani, Atif Aftab Ahmed
Butt, Nigar Azhar
contents Automated test generation for game-like programs presents unique challenges due to their non-deterministic behavior and complex control structures. The NEATEST framework has been used for automated testing in Scratch games, employing neuroevolution-based test generation optimized for statement coverage. However, statement coverage alone is often insufficient for fault detection, as it does not guarantee execution of all logical branches. This paper introduces a branch coverage-based fitness function to enhance test effectiveness in automated game testing. We extend NEATEST by integrating a branch fitness function that prioritizes control-dependent branches, guiding the neuroevolution process to maximize branch exploration. To evaluate the effectiveness of this approach, empirical experiments were conducted on 25 Scratch games, comparing Neatest with Statement Coverage (NSC) against Neatest with Branch Coverage (NBC). A mutation analysis was also performed to assess the fault detection capabilities of both techniques. The results demonstrate that NBC achieves higher branch coverage than NSC in 13 out of 25 games, particularly in programs with complex conditional structures. Moreover, NBC achieves a lower false positive rate in mutation testing, making it a more reliable approach for identifying faulty behavior in game programs. These findings confirm that branch coverage-based test generation improves test coverage and fault detection in Scratch programs.
format Preprint
id arxiv_https___arxiv_org_abs_2507_09414
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing NeuroEvolution-Based Game Testing: A Branch Coverage Approach for Scratch Programs
Sohail, Khizra
Jilani, Atif Aftab Ahmed
Butt, Nigar Azhar
Software Engineering
Automated test generation for game-like programs presents unique challenges due to their non-deterministic behavior and complex control structures. The NEATEST framework has been used for automated testing in Scratch games, employing neuroevolution-based test generation optimized for statement coverage. However, statement coverage alone is often insufficient for fault detection, as it does not guarantee execution of all logical branches. This paper introduces a branch coverage-based fitness function to enhance test effectiveness in automated game testing. We extend NEATEST by integrating a branch fitness function that prioritizes control-dependent branches, guiding the neuroevolution process to maximize branch exploration. To evaluate the effectiveness of this approach, empirical experiments were conducted on 25 Scratch games, comparing Neatest with Statement Coverage (NSC) against Neatest with Branch Coverage (NBC). A mutation analysis was also performed to assess the fault detection capabilities of both techniques. The results demonstrate that NBC achieves higher branch coverage than NSC in 13 out of 25 games, particularly in programs with complex conditional structures. Moreover, NBC achieves a lower false positive rate in mutation testing, making it a more reliable approach for identifying faulty behavior in game programs. These findings confirm that branch coverage-based test generation improves test coverage and fault detection in Scratch programs.
title Enhancing NeuroEvolution-Based Game Testing: A Branch Coverage Approach for Scratch Programs
topic Software Engineering
url https://arxiv.org/abs/2507.09414