Automating Regression Test Prioritization from Source-Code Change Histories
Keywords:
regression test prioritization; source-code change histories; test case ranking; temporal decay; fault-proneness; software maintenanceAbstract
Regression test prioritization is a routine but consequential decision in software maintenance: when a source change is made, limited test budgets must be allocated to tests that are most likely to reveal regression faults early. Existing prioritization techniques often rely on current coverage, static dependency graphs, or manually specified risk factors, while the historical record of how code changes have interacted with test outcomes remains underexploited. This paper develops a methodological framework that automates regression test prioritization directly from source-code change histories. The framework represents each past change as a set of modified code entities, associates entities with historical test outcomes through a recency-weighted, smoothed failure association, and combines those associations with change-risk features such as churn, dispersion, fix-linked history, and bug-label evidence. It then ranks tests by a set-level utility that credits both individual test-change relevance and diversity of changed-code coverage, subject to count and execution-cost budgets. The paper specifies the ranking objective, derives a greedy marginal-gain procedure, introduces a conservative association bound for cold-start and noisy histories, and analyzes sensitivity, failure modes, and evaluation logic against credible baselines. The contribution is an evidence-aware and implementable formulation for history-driven prioritization, together with a technical account of when the approach is defensible and where source-history signals can mislead. The framework supports maintenance teams that need transparent, reproducible, and budget-aware ordering of regression tests before full-suite execution.
References
1. Yoo, S., & Harman, M. (2012). Regression testing minimization, selection and prioritization: A survey. Software Testing, Verification and Reliability, 22(2), 67–120. https://doi.org/10.1002/stv.430
2. Rothermel, G., Untch, R. H., Chu, C., & Harrold, M. J. (1999). Test case prioritization: An empirical study. In Proceedings of the IEEE International Conference on Software Maintenance (pp. 179–188). IEEE.
3. Elbaum, S., Malishevsky, A. G., & Rothermel, G. (2002). Test case prioritization: A family of empirical studies. IEEE Transactions on Software Engineering, 28(2), 159–182. https://doi.org/10.1109/32.988497
4. Kim, J.-M., & Porter, A. (2002). A history-based test prioritization technique for regression testing in resource constrained environments. In Proceedings of the 24th International Conference on Software Engineering (pp. 119–129). ACM. https://doi.org/10.1145/581339.581357
5. Harrold, M. J., Jones, J. A., Li, T., Liang, D., Orso, A., Pennings, M., Sinha, S., Spoon, S. A., & Gujarathi, A. (2001). Regression test selection for Java software. In Proceedings of the 16th ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (pp. 312–326). ACM. https://doi.org/10.1145/504282.504305
6. Graves, T. L., Harrold, M. J., Kim, J.-M., Porter, A., & Rothermel, G. (2001). An empirical study of regression test selection techniques. ACM Transactions on Software Engineering and Methodology, 10(2), 184–208. https://doi.org/10.1145/367008.367020
7. Do, H., Elbaum, S., & Rothermel, G. (2005). Supporting controlled experimentation with testing techniques: An infrastructure and its potential impact. Empirical Software Engineering, 10(4), 405–435. https://doi.org/10.1007/s10664-005-3861-2
8. Engström, E., Runeson, P., & Skoglund, M. (2010). A systematic review on regression test selection techniques. Information and Software Technology, 52(1), 14–30. https://doi.org/10.1016/j.infsof.2009.07.001
9. Kamei, Y., Shihab, E., Adams, B., Hassan, A. E., Mockus, A., Sinha, A., & Ubayashi, N. (2013). A large-scale empirical study of just-in-time quality assurance. IEEE Transactions on Software Engineering, 39(6), 757–773. https://doi.org/10.1109/TSE.2012.70
10. Hassan, A. E. (2009). Predicting faults using the complexity of code changes. In Proceedings of the 31st International Conference on Software Engineering (pp. 78–88). IEEE.
11. Mockus, A., & Weiss, D. M. (2000). Predicting risk of software changes. Bell Labs Technical Journal, 5(2), 169–180. https://doi.org/10.1002/bltj.2229
12. Nagappan, N., Ball, T., & Zeller, A. (2006). Mining metrics to predict component failures. In Proceedings of the 28th International Conference on Software Engineering (pp. 452–461). ACM. https://doi.org/10.1145/1134285.1134349
13. Śliwerski, J., Zimmermann, T., & Zeller, A. (2005). When do changes induce fixes? In Proceedings of the 2005 International Workshop on Mining Software Repositories (pp. 1–5). ACM. https://doi.org/10.1145/1083142.1083147
14. Bachmann, A., Bird, C., Rahman, F., Devanbu, P., & Bernstein, A. (2010). The missing links: Bugs and bug-fix commits. In Proceedings of the 18th ACM SIGSOFT International Symposium on Foundations of Software Engineering (pp. 97–106). ACM. https://doi.org/10.1145/1882291.1882308
15. Jiang, B., Zhang, Z., Chan, W. K., & Tse, T. H. (2009). Adaptive random test case prioritization. In Proceedings of the 2009 IEEE/ACM International Conference on Automated Software Engineering (pp. 233–244). IEEE. https://doi.org/10.1109/ASE.2009.14
16. Herzig, K., & Nagappan, N. (2015). Empirically detecting false test alarms using association rules. In Proceedings of the 37th International Conference on Software Engineering (pp. 39–48). IEEE.
17. Rosen, C., Grawi, B., & Shihab, E. (2015). Commit Guru: Analytics and risk prediction of software commits. In Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering (pp. 966–969). ACM. https://doi.org/10.1145/2786805.2803183
18. Runeson, P., & Höst, M. (2009). Guidelines for conducting and reporting case study research in software engineering. Empirical Software Engineering, 14(2), 131–164. https://doi.org/10.1007/s10664-008-9102-8
19. Zeller, A. (1999). Yesterday, my program worked. Today, it does not. Why? In Proceedings of the 7th European Software Engineering Conference and the 7th ACM SIGSOFT Symposium on the Foundations of Software Engineering (pp. 253–267). Springer. https://doi.org/10.1007/3-540-48166-4_16
Downloads
Published
Issue
Section
License
Copyright (c) 2022 Artificial Intelligence and Machine Learning Systems

This work is licensed under a Creative Commons Attribution 4.0 International License.