Test Data Generation for Mutation Testing Based on Markov Chain Usage Model and Estimation of Distribution Algorithm

被引:1
作者
Wei, Changqing [1 ]
Yao, Xiangjuan [1 ]
Gong, Dunwei [2 ]
Liu, Huai [3 ]
机构
[1] China Univ Min & Technol, Sch Math, Xuzhou 221116, Peoples R China
[2] Qingdao Univ Sci & Technol, Coll Automat & Elect Engn, Qingdao 266061, Shandong, Peoples R China
[3] Swinburne Univ Technol, Dept Comp Technol, Melbourne, Vic 3122, Australia
基金
中国国家自然科学基金;
关键词
Testing; Markov processes; Estimation; Software algorithms; Genetic algorithms; Data models; Costs; Mutation testing; weak mutation; test data generation; Markov chain usage model; coverage of extended path; estimation of distribution algorithm;
D O I
10.1109/TSE.2024.3358297
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Mutation testing, a mainstream fault-based software testing technique, can mimic a wide variety of software faults by seeding them into the target program and resulting in the so-called mutants. Test data generated in mutation testing should be able to kill as many mutants as possible, hence guaranteeing a high fault-detection effectiveness of testing. Nevertheless, the test data generation can be very expensive, because mutation testing normally involves an extremely large number of mutants and some mutants are hard to kill. It is thus a critical yet challenging job to find an efficient way to generate a small set of test data that are able to kill multiple mutants at the same time as well as reveal those hard-to-detect faults. In this paper, we propose a new approach for test data generation in mutation testing, through the novel applications of the Markov chain usage model and the estimation of distribution algorithm. We first utilize the Markov chain usage model to reduce the so-called mutant branches in weak mutation testing and generate a minimal set of extended paths. Then, we regard the problem of generating test data as the problem of covering extended paths and use an estimation of distribution algorithm based on probability model to solve the problem. Finally, we develop a framework, TAMMEA, to implement the new approach of generating test data for mutation testing. The empirical studies based on fifteen object programs show that TAMMEA can kill more mutants using fewer test data compared with baseline techniques. In addition, the computation overhead of TAMMEA is lower than that of the baseline technique based on the traditional genetic algorithm, and comparable to that of the random method. It is clear that the new approach improves both the effectiveness and efficiency of mutation testing, thus promoting its practicability.
引用
收藏
页码:551 / 573
页数:23
相关论文
共 51 条
  • [1] [陈翔 Chen Xiang], 2012, [计算机科学与探索, Journal of Frontiers of Computer Science & Technology], V6, P1057
  • [2] Enhancement of Mutation Testing via Fuzzy Clustering and Multi-Population Genetic Algorithm
    Dang, Xiangying
    Gong, Dunwei
    Yao, Xiangjuan
    Tian, Tian
    Liu, Huai
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (06) : 2141 - 2156
  • [3] HINTS ON TEST DATA SELECTION - HELP FOR PRACTICING PROGRAMMER
    DEMILLO, RA
    LIPTON, RJ
    [J]. COMPUTER, 1978, 11 (04) : 34 - 41
  • [4] CONSTRAINT-BASED AUTOMATIC TEST DATA GENERATION
    DEMILLO, RA
    OFFUTT, AJ
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (09) : 900 - 910
  • [5] Du X., 2018, Softw. Eng. Appl., V7, P99
  • [6] Automatic Test Case Generation and Optimization Based on Mutation Testing
    Du, Yunqi
    Pan, Ya
    Ao, Haiyang
    Alex, O.
    Fan, Yong
    [J]. 2019 COMPANION OF THE 19TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS-C 2019), 2019, : 522 - 523
  • [7] Mutation-Driven Generation of Unit Tests and Oracles
    Fraser, Gordon
    Zeller, Andreas
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2012, 38 (02) : 278 - 292
  • [8] Genlin J., 2004, COMPUTER APPL SOFTWA, V2, P69, DOI DOI 10.3969/J.ISSN.1000-386X.2004.02.032
  • [9] Goldberg D.E., 1989, Genetic Algorithms in Search, Optimization, and Machine Learning, V1st ed.
  • [10] Goldberg D.E., 2002, DESIGN INNOVATION LE