Seeding strategies in search-based unit test generation

被引:55
|
作者
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
相关论文
共 50 条
  • [1] Diversity in Search-Based Unit Test Suite Generation
    Albunian, Nasser M.
    SEARCH BASED SOFTWARE ENGINEERING, SSBSE 2017, 2017, 10452 : 183 - 189
  • [2] Some Seeds Are Strong: Seeding Strategies for Search-based Test Case Selection
    Arrieta, Aitor
    Valle, Pablo
    Agirre, Joseba A.
    Sagardui, Goiuria
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (01)
  • [3] Toward granular search-based automatic unit test case generation
    Pecorelli, Fabiano
    Grano, Giovanni
    Palomba, Fabio
    Gall, Harald C.
    De Lucia, Andrea
    EMPIRICAL SOFTWARE ENGINEERING, 2024, 29 (04)
  • [4] Is Search-based Unit Test Generation Research Stuck in a Local Optimum?
    Rojas, Jose Miguel
    Fraser, Gordon
    2017 IEEE/ACM 10TH INTERNATIONAL WORKSHOP ON SEARCH-BASED SOFTWARE TESTING (SBST), 2017, : 51 - 52
  • [5] Increasing the Efficiency of Search-Based Unit Test Generation using Parameter Control
    White, Thomas
    2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 1042 - 1044
  • [6] Selectively Combining Multiple Coverage Goals in Search-Based Unit Test Generation
    Zhou, Zhichao
    Zhou, Yuming
    Fang, Chunrong
    Chen, Zhenyu
    Tang, Yutian
    PROCEEDINGS OF THE 37TH IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, ASE 2022, 2022,
  • [7] Search-Based Test Generation for Android Apps
    Arcuschin Moreno, Ivan
    2020 ACM/IEEE 42ND INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: COMPANION PROCEEDINGS (ICSE-COMPANION 2020), 2020, : 230 - 233
  • [8] Search-Based Test Suite Generation for Rust
    Tymofyeyev, Vsevolod
    Fraser, Gordon
    SEARCH-BASED SOFTWARE ENGINEERING, SSBSE 2022, 2022, 13711 : 3 - 18
  • [9] Coverage Goal Selector for Combining Multiple Criteria in Search-Based Unit Test Generation
    Zhou, Zhichao
    Zhou, Yuming
    Fang, Chunrong
    Chen, Zhenyu
    Luo, Xiapu
    He, Jingzhu
    Tang, Yutian
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2024, 50 (04) : 854 - 883
  • [10] Detecting Real Faults in the Gson Library Through Search-Based Unit Test Generation
    Gay, Gregory
    SEARCH-BASED SOFTWARE ENGINEERING, SSBSE 2018, 2018, 11036 : 385 - 391