Influence of External Dependency Retrieval and Prompt Engineering in Test Case Generation using LLMs
| dc.contributor.author | Lenke, David | |
| dc.contributor.author | Ferrer-Urbano, Francisco Javier | |
| dc.contributor.author | Chicano-García, José-Francisco | |
| dc.date.accessioned | 2025-11-19T09:49:38Z | |
| dc.date.available | 2025-11-19T09:49:38Z | |
| dc.date.issued | 2025 | |
| dc.departamento | Instituto de Tecnología e Ingeniería del Software de la Universidad de Málaga | es_ES |
| dc.description.abstract | The recent rise of large language models (LLMs) has enabled the generation of higher-quality test cases by leveraging the semantics of the methods under test. However, existing LLM-based approaches still struggle to achieve high coverage levels. To mitigate this issue, we present two complementary techniques in this work: Prompt Engineering and External Dependency Retrieval for context enrichment. We evaluated our improvements through an ablation study on three open-source and four proprietary projects, encompassing 261 distinct methods. For each method, we generated test suites under four implementations and performed ten independent runs, yielding a total of 10,440 executions. Our combined approach yields an average coverage increase of 12% on industrial software, with statistically significant gains over all other variants studied in this paper. Although our enhancements increase the context (the number of input tokens rises by 66.3%), this is partially compensated by a reduction in output tokens due to fewer repair attempts, so that the overall cost overhead remains moderate at about 16%. As future work, we aim to identify the minimal necessary context that still yields significant improvements in test coverage, which could help to further reduce costs. | es_ES |
| dc.identifier.uri | https://hdl.handle.net/10630/40816 | |
| dc.language.iso | eng | es_ES |
| dc.relation.eventdate | 14/11/2025 | es_ES |
| dc.relation.eventplace | Jaen, España | es_ES |
| dc.relation.eventtitle | IDEAL | es_ES |
| dc.rights.accessRights | open access | es_ES |
| dc.subject | Aprendizaje automático (Inteligencia artificial) | es_ES |
| dc.subject | Lenguajes de programación | es_ES |
| dc.subject | Proceso en lenguaje natural (Informática) | es_ES |
| dc.subject.other | LLM | es_ES |
| dc.subject.other | Test case generation | es_ES |
| dc.subject.other | External dependency retrieval | es_ES |
| dc.subject.other | Prompt engineering | es_ES |
| dc.subject.other | Chatuni test | es_ES |
| dc.title | Influence of External Dependency Retrieval and Prompt Engineering in Test Case Generation using LLMs | es_ES |
| dc.type | conference output | es_ES |
| dspace.entity.type | Publication | |
| relation.isAuthorOfPublication | df230001-ab0c-4da1-a259-1de6e247bb42 | |
| relation.isAuthorOfPublication | 6f65e289-6502-4756-871c-dbe0ca9be545 | |
| relation.isAuthorOfPublication.latestForDiscovery | df230001-ab0c-4da1-a259-1de6e247bb42 |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- _IDEAL__Influence_of_External_Dependency_Retrieval_and_Prompt_Engineering_in_Test_Case_Generation_using_LLMs__Congress_Version_ (2).pdf
- Size:
- 727.96 KB
- Format:
- Adobe Portable Document Format
- Description:

