Parallel Test Prioritization
Authors:
Open Access
- 28 September 2021
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 31 (1) , 1-50
Abstract
Although regression testing is important to guarantee the software quality in software evolution, it suffers from the widely known cost problem. To address this problem, existing researchers made dedicated efforts on test prioritization, which optimizes the execution order of tests to detect faults earlier; while practitioners in industry leveraged more computing resources to save the time cost of regression testing. By combining these two orthogonal solutions, in this article, we define the problem of parallel test prioritization, which is to conduct test prioritization in the scenario of parallel test execution to reduce the cost of regression testing. Different from traditional sequential test prioritization, parallel test prioritization aims at generating a set of test sequences, each of which is allocated in an individual computing resource and executed in parallel. In particular, we propose eight parallel test prioritization techniques by adapting the existing four sequential test prioritization techniques, by including and excluding testing time in prioritization. To investigate the performance of the eight parallel test prioritization techniques, we conducted an extensive study on 54 open-source projects and a case study on 16 commercial projects from Baidu , a famous search service provider with 600M monthly active users. According to the two studies, parallel test prioritization does improve the efficiency of regression testing, and cost-aware additional parallel test prioritization technique significantly outperforms the other techniques, indicating that this technique is a good choice for practical parallel testing. Besides, we also investigated the influence of two external factors, the number of computing resources and time allowed for parallel testing, and find that more computing resources indeed improve the performance of parallel test prioritization. In addition, we investigated the influence of two more factors, test granularity and coverage criterion, and find that parallel test prioritization can still accelerate regression testing in parallel scenario. Moreover, we investigated the benefit of parallel test prioritization on the regression testing process of continuous integration, considering both the cumulative acceleration performance and the overhead of prioritization techniques, and the results demonstrate the superiority of parallel test prioritization.Keywords
Funding Information
- National Natural Science Foundation of China (61872008 and 62002256)
This publication has 49 references indexed in Scilit:
- A Fine-Grained Parallel Multi-objective Test Case Prioritization on GPU2013
- Test case prioritization: a systematic mapping studySoftware Quality Journal, 2012
- A systematic review on regression test selection techniquesInformation and Software Technology, 2010
- A framework for efficient regression tests on database applicationsThe VLDB Journal, 2006
- Prioritizing test cases for regression testingIEEE Transactions on Software Engineering, 2001
- A safe, efficient regression test selection techniqueACM Transactions on Software Engineering and Methodology, 1997
- Analyzing regression test selection techniquesIEEE Transactions on Software Engineering, 1996
- Approximation algorithms for scheduling unrelated parallel machinesMathematical Programming, 1990
- Bounds for Certain Multiprocessing AnomaliesBell System Technical Journal, 1966
- An Analysis of Variance Test for Normality (Complete Samples)Biometrika, 1965