Seeding strategies in search-based unit test generation

被引:70
作者
Rojas, Jose Miguel [1 ]
Fraser, Gordon [1 ]
Arcuri, Andrea [2 ,3 ]
机构
[1] Univ Sheffield, Dept Comp Sci, 211 Portobello, Sheffield S1 4DP, S Yorkshire, England
[2] Scienta, Oslo, Norway
[3] Univ Luxembourg, SnT Ctr, Luxembourg, Luxembourg
基金
英国工程与自然科学研究理事会;
关键词
test case generation; search-based testing; testing classes; search-based software engineering; JUnit; !text type='Java']Java[!/text;
D O I
10.1002/stvr.1601
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Search-based techniques have been applied successfully to the task of generating unit tests for object-oriented software. However, as for any meta-heuristic search, the efficiency heavily depends on many factors; seeding, which refers to the use of previous related knowledge to help solve the testing problem at hand, is one such factor that may strongly influence this efficiency. This paper investigates different seeding strategies for unit test generation, in particular seeding of numerical and string constants derived statically and dynamically, seeding of type information and seeding of previously generated tests. To understand the effects of these seeding strategies, the results of a large empirical analysis carried out on a large collection of open-source projects from the SF110 corpus and the Apache Commons repository are reported. These experiments show with strong statistical confidence that, even for a testing tool already able to achieve high coverage, the use of appropriate seeding strategies can further improve performance. (C) 2016 The Authors. Software Testing, Verification and Reliability published by John Wiley & Sons, Ltd.
引用
收藏
页码:366 / 401
页数:36
相关论文
共 29 条
[11]   Whole Test Suite Generation [J].
Fraser, Gordon ;
Arcuri, Andrea .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2013, 39 (02) :276-291
[12]   Search-based software engineering [J].
Harman, M ;
Jones, BF .
INFORMATION AND SOFTWARE TECHNOLOGY, 2001, 43 (14) :833-839
[13]   Coverage Is Not Strongly Correlated with Test Suite Effectiveness [J].
Inozemtseva, Laura ;
Holmes, Reid .
36TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2014), 2014, :435-445
[14]  
Just R., 2014, P 2014 INT S SOFTW T, P433
[15]   AUTOMATED SOFTWARE TEST DATA GENERATION [J].
KOREL, B .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1990, 16 (08) :870-879
[16]  
Langdon WB, 2000, LECT NOTES COMPUT SC, V1802, P304
[17]  
Li YC, 2011, LECT NOTES COMPUT SC, V6956, P237, DOI 10.1007/978-3-642-23716-4_21
[18]   Search-based software test data generation: a survey [J].
McMinn, P .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2004, 14 (02) :105-156
[19]  
McMinn P., 2012, 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation (ICST 2012), P141, DOI 10.1109/ICST.2012.94
[20]  
MCMINN P., 2010, Proceedings of the First International Workshop on Software Test Output Validation, P1