Influence of External Dependency Retrieval and Prompt Engineering in Test Case Generation using LLMs

dc.contributor.authorLenke, David
dc.contributor.authorFerrer-Urbano, Francisco Javier
dc.contributor.authorChicano-García, José-Francisco
dc.date.accessioned2025-11-19T09:49:38Z
dc.date.available2025-11-19T09:49:38Z
dc.date.issued2025
dc.departamentoInstituto de Tecnología e Ingeniería del Software de la Universidad de Málagaes_ES
dc.description.abstractThe 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.urihttps://hdl.handle.net/10630/40816
dc.language.isoenges_ES
dc.relation.eventdate14/11/2025es_ES
dc.relation.eventplaceJaen, Españaes_ES
dc.relation.eventtitleIDEALes_ES
dc.rights.accessRightsopen accesses_ES
dc.subjectAprendizaje automático (Inteligencia artificial)es_ES
dc.subjectLenguajes de programaciónes_ES
dc.subjectProceso en lenguaje natural (Informática)es_ES
dc.subject.otherLLMes_ES
dc.subject.otherTest case generationes_ES
dc.subject.otherExternal dependency retrievales_ES
dc.subject.otherPrompt engineeringes_ES
dc.subject.otherChatuni testes_ES
dc.titleInfluence of External Dependency Retrieval and Prompt Engineering in Test Case Generation using LLMses_ES
dc.typeconference outputes_ES
dspace.entity.typePublication
relation.isAuthorOfPublicationdf230001-ab0c-4da1-a259-1de6e247bb42
relation.isAuthorOfPublication6f65e289-6502-4756-871c-dbe0ca9be545
relation.isAuthorOfPublication.latestForDiscoverydf230001-ab0c-4da1-a259-1de6e247bb42

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
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: