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.

Denaro, G., Guglielmo, L. (2025). Automated Test Generation from Program Documentation Encoded in Code Comments. In 2025 IEEE/ACM International Conference on Automation of Software Test (AST) (pp.46-57). Institute of Electrical and Electronics Engineers Inc. [10.1109/AST66626.2025.00012].

Automated Test Generation from Program Documentation Encoded in Code Comments

Denaro, Giovanni;Guglielmo, Luca
2025

Abstract

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.
paper
Automated test generation; Search based testing; Test oracles; Testing code documentation;
English
IEEE/ACM International Conference on Automation of Software Test - 28-29 April 2025
2025
2025 IEEE/ACM International Conference on Automation of Software Test (AST)
9798331501792
2025
46
57
none
Denaro, G., Guglielmo, L. (2025). Automated Test Generation from Program Documentation Encoded in Code Comments. In 2025 IEEE/ACM International Conference on Automation of Software Test (AST) (pp.46-57). Institute of Electrical and Electronics Engineers Inc. [10.1109/AST66626.2025.00012].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/590102
Citazioni
  • Scopus 0
  • ???jsp.display-item.citation.isi??? 0
Social impact