Conclusion
Although there are various studies related to selecting test cases, few are available for both path coverage and coverage balance. Our method is to select test cases that both traverse target paths and achieve coverage balance to improve the fault detection rate. We formulate the problem as an evolution selection by applying GA. Experimental results show that our method can effectively improve the fault detection rate of the selected test cases while ensuring the reduction rate. It can select a subset of test cases that meet testing requirements with high efficiency.
References
Mukherjee R, Patnaik K S. A survey on different approaches for software test case prioritization. Journal of King Saud University — Computer and Information Sciences, 2018
Simone R, Giuseppe S, Giuliano A, Alessandro M. SPIRITuS: a simple information retrieval regression test selection approach. Information and Software Technology, 2018, 99: 62–80
Cheng X M, Yang Q H, Zhai Y P, Chen W. Test case selection technique based on semi-supervised clustering method. Computer Science, 2018, 45(1): 249–254
Fang C R, Chen Z Y, Wu K, Zhao Z H. Similarity-based test case prioritization using ordered sequences of program entities. Software Quality Journal, 2014, 22(2): 335–361
Ye W, Lu X Y, Lu X F, Ma L. Optimized test selection method considering critical faults. Systems Engineering and Electronics, 2019, 41(7): 1583–1589
Zhang Y. Theories and methods of evolutionary generation of test data for path coverage. Doctoral Dissertation, China University of Mining and Technology, 2012, 95–108
Xia H, Song X, Wang L. Research of test case auto-generating based on Z path coverage. Modem Electronics Technique, 2006, 6: 92–94
Blondeau V, Etien A, Anquetil N, Cresson S, Croisy P, Ducasse S. Test case selection in industry: an analysis of issues related to static approaches. Software Quality Journal, 2017, 25: 1203–1237
Acknowledgements
This work was jointly funded by the Research Projects of Basic Scientific Research Business Expenses in Institutions of Higher Learning of Heilongjiang Province (1353ZD003 and 2018-KYYWFMY-0104); Science and Technology Research Project of Mudanjiang Normal University (YB2019003); the Scientific and Technological Plan Project of Mudanjiang City (Z2018g023); and the Innovation Foundation of Science and Technology of Dalian (2018J12GX045).
Author information
Authors and Affiliations
Corresponding author
Electronic Supplementary Material
Rights and permissions
About this article
Cite this article
Ma, B., Wan, L., Yao, N. et al. Evolutionary selection for regression test cases based on diversity. Front. Comput. Sci. 15, 152205 (2021). https://doi.org/10.1007/s11704-020-9229-3
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s11704-020-9229-3