Metraipolis › archive › dc_9098f93214ef
Evaluating the effectiveness of class-level LLM-generated test suites in Python — arXiv:2609.24341
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.24341
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-09T07:13:58.878Z
- SHA-256 of the archived text
6517789899ce63d77d91a4b0f41d765f8db4f548cd3869e8800f9c610b9ea4ec- Stable URL of this page
https://metraipolis.com/documento/dc_9098f93214ef
How to cite
Evaluating the effectiveness of class-level LLM-generated test suites in Python — arXiv:2609.24341 — arXiv (en), https://arxiv.org/abs/2609.24341 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9098f93214ef (Metraipolis archive dc_9098f93214ef, sha256 6517789899ce63d77d91a4b0f41d765f8db4f548cd3869e8800f9c610b9ea4ec)
BibTeX
@misc{dc9098f93214ef,
title = {Evaluating the effectiveness of class-level LLM-generated test suites in Python — arXiv:2609.24341},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.24341},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9098f93214ef; sha256 6517789899ce63d77d91a4b0f41d765f8db4f548cd3869e8800f9c610b9ea4ec},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.24341. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Context: Large language models (LLMs) can generate unit tests quickly, but high structural coverage does not establish that those tests execute reliably or detect faults. Existing evidence often treats coverage as the principal outcome and rarely compares prompt strategies and models through mutation testing at class level. Objective: This study examines how prompt strategy and model choice shape the executability, structural coverage, fault-detection effectiveness, and structural quality of LLM-generated Python test suites relative to human-written suites. Method: We evaluate multiple prompt strategies across a diverse set of current LLM configurations on the ClassEval benchmark. The evaluation combines execution outcomes, line and branch coverage, Cosmic Ray mutation scores, and structural quality indicators. Primary analyses treat successful execution as a prerequisite; paired comparisons use only classes shared by the relevant executable subsets. Results: Structural coverage is consistently near its ceiling and offers little discrimination among configurations. Executability varies substantially. The proposed prompt performs strongly for mutation score, but no prompt dominates across models. Model choice explains more variation than prompt choice, and their interaction shows that prompt effectiveness depends on the selected model. Human and LLM suites are evaluated on unequal executable subsets, so their relative mutation scores do not establish superiority. Conclusion: Reliable assessment of LLM-generated tests should treat executability as a gate and combine coverage with mutation testing and structural quality indicators. In practice, model selection should precede prompt tuning. Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-22 in cs.SE). Categorie arXiv: Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2609.24341 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-09T07:08:15.276Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-22?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).