Automated Test Generation from Program Documentation Encoded in Code Comments

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Denaro, Giovanni, Guglielmo, Luca
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910922617913344
author Denaro, Giovanni
Guglielmo, Luca
author_facet Denaro, Giovanni
Guglielmo, Luca
contents Documenting the functionality of software units with code comments, e.g., Javadoc comments, is a common programmer best-practice in software engineering. This paper introduces a novel test generation technique that exploits the code-comment documentation constructively. We originally address those behaviors as test objectives, which we pursue in search-based fashion. We deliver test cases with names and oracles properly contextualized on the target behaviors. Our experiments against a benchmark of 118 Java classes indicate that the proposed approach successfully tests many software behaviors that may remain untested with coverage-driven test generation approaches, and distinctively detects unknown failures.
format Preprint
id arxiv_https___arxiv_org_abs_2504_21161
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Automated Test Generation from Program Documentation Encoded in Code Comments
Denaro, Giovanni
Guglielmo, Luca
Software Engineering
D.2.5
Documenting the functionality of software units with code comments, e.g., Javadoc comments, is a common programmer best-practice in software engineering. This paper introduces a novel test generation technique that exploits the code-comment documentation constructively. We originally address those behaviors as test objectives, which we pursue in search-based fashion. We deliver test cases with names and oracles properly contextualized on the target behaviors. Our experiments against a benchmark of 118 Java classes indicate that the proposed approach successfully tests many software behaviors that may remain untested with coverage-driven test generation approaches, and distinctively detects unknown failures.
title Automated Test Generation from Program Documentation Encoded in Code Comments
topic Software Engineering
D.2.5
url https://arxiv.org/abs/2504.21161