Back to results

East Carolina University

Risk-Based Test Case Prioritization Using Large Language Models in Regression Testing

Abstract

dc:description.abstract

Regression testing is critical to ensuring software quality after performing code modifications. However, complete test execution on complex and robust test suites can be infeasible due to time and resource constraints. Therefore, test case prioritization (TCP) strategies aim to organize test cases to increase fault detection rates early during test execution. This study proposes a risk-based test case prioritization approach that leverages large language models (LLMs) to estimate the fault-proneness of individual methods to guide the prior- itization process. An LLM is fine-tuned to predict the risk score of each function based on several software metrics, which is used to perform static analysis of test cases to de- termine an overall risk ranking. The prioritized test suites are evaluated using established metrics, including Fault Detection Rate (FDR) and Average Percentage of Faults Detected (APFD). The evaluation of this approach is compared against baseline techniques such as coverage-based and randomized prioritization. The results of this experiment, conducted on open-source Java projects, determined that the risk-based LLM prioritization approach outperforms traditional TCP methods in early fault detection, highlighting the potential of including LLMs in regression testing workflows.

Degree

thesis:*
Name thesis:degree_name
M.S.
Department dc:contributor.department
Computer Science
Grantor dc:publisher
East Carolina University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Guzman-Sanchez, Jose
Advisor dc:contributor.advisor
  • Srinivasan, Madhusudan
Committee members dc:contributor.committeemember
  • Nic Herndon
  • Nasseh Nassehzadeh-Tabrizi

Subjects

dc:subject × 7

Rights

Language dc:language.iso
English

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10342/14048

Chain of custody

source
Harvested from
East Carolina University
Base URL
thescholarship.ecu.edu/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Guzman-Sanchez, Jose. Risk-Based Test Case Prioritization Using Large Language Models in Regression Testing. East Carolina University, 2025. https://hdl.handle.net/10342/14048