The University of Texas at Austin
Accelerating regression testing through test environment tuning
Abstract
dc:description.abstractRegression testing is an essential practice in software development, where developers run tests after every change to ensure that changes do not break existing functionality. However, regression testing is costly. Developers run a large number of tests after every change, and changes happen frequently. The cost is both in the time developers spend waiting for tests to finish and in the machine resources consumed by running the tests. Prior techniques to reduce the cost of regression testing, such as regression test selection and test suite reduction, run fewer tests after each change, but they risk missing faults that the skipped tests would have detected. This dissertation proposes three lines of work that reduce regression testing time without skipping any tests, by tuning the test execution environment rather than modifying which tests are run. In Java projects, tests execute within a Java Virtual Machine (JVM) that is highly configurable, and the order in which tests execute can also affect total runtime. We exploit these properties to make the same tests run faster. First, this dissertation presents the first empirical study on the impact of JVM configurations on test runtime. We evaluate different strategies for searching the JVM configuration space, including random generation, a machine learning-based compiler autotuning technique (BOCA), and combinatorial testing. Our evaluation on 20 open- source Java projects shows that randomly generated configurations can reduce test runtime by 11.90% on average, with reductions up to 43.89% for individual projects. We further show that configurations that reduce runtime remain effective across 50 subsequent commits and when combined with regression test selection. These results establish the potential of JVM configuration tuning and motivate the development of more efficient search strategies. Second, this dissertation presents PROBO, a profiling-guided Bayesian optimization approach that leverages JVM runtime metrics to guide the search for configurations that reduce testing time. Unlike prior approaches that directly model the relationship between JVM flags and testing time, PROBO decomposes the prediction through observable runtime behaviors: a metrics model predicts how flag configurations affect runtime metrics, and a performance model predicts how those metrics affect testing time. Our evaluation on 16 open-source Java projects shows that PROBO achieves 1.85× improvement over random search and 2.49× improvement over BOCA, successfully reducing testing time for all evaluated projects. PROBO- generated configurations remain effective across software evolution, maintaining an average reduction of 8.8% over an average of 88 subsequent commits per project. Third, this dissertation investigates the effect of test execution order on total runtime. We find that runtime varies significantly across different test orders, by 31.17% on average between the fastest and slowest orders across 12 Java projects. We develop a technique that searches for faster orders by clustering orders based on their runtimes and generating new orders that follow relative positioning patterns observed in the fastest clusters. Together, these three lines of work demonstrate that tuning the test execution environment can substantially reduce regression testing time while still running all tests, offering a complementary direction to existing techniques that reduce cost by running fewer tests.
Degree
thesis:*- Name thesis:degree_name
- Doctor of Philosophy
- Level thesis:degree_level
- DOCTORAL
- Discipline thesis:degree_discipline
- Electrical and Computer Engineering
- Department thesis:degree_department
- Electrical and Computer Engineering
- Grantor
- The University of Texas at Austin
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Baz, Abdelrahman
- Advisor dc:contributor.advisor
-
- Shi, August (August Wang)
- Committee members dc:contributor.committeemember
-
- Khurshid, Sarfraz
- Wing Lam
- Christine Julien
- Gligoric, Milos
Subjects
dc:subject × 3Rights
- Language dc:language.iso
- English
Identifiers
dc:identifier.*- Identifier URI
- https://hdl.handle.net/2152/137134