On guiding the augmentation of an automated test suite via mutation analysis

被引:0
作者
Ben H. Smith
Laurie Williams
机构
[1] North Carolina State University,Department of Computer Science
来源
Empirical Software Engineering | 2009年 / 14卷
关键词
Mutation testing; Line coverage; Fault injection; Empirical effectiveness; Test case augmentation; Mutation analysis; Mutation testing tool; Statement coverage; Test adequacy; Web application; Open source; Unit testing;
D O I
暂无
中图分类号
学科分类号
摘要
Mutation testing has traditionally been used as a defect injection technique to assess the effectiveness of a test suite as represented by a “mutation score.” Recently, mutation testing tools have become more efficient, and industrial usage of mutation analysis is experiencing growth. Mutation analysis entails adding or modifying test cases until the test suite is sufficient to detect as many mutants as possible and the mutation score is satisfactory. The augmented test suite resulting from mutation analysis may reveal latent faults and provides a stronger test suite to detect future errors which might be injected. Software engineers often look for guidance on how to augment their test suite using information provided by line and/or branch coverage tools. As the use of mutation analysis grows, software engineers will want to know how the emerging technique compares with and/or complements coverage analysis for guiding the augmentation of an automated test suite. Additionally, software engineers can benefit from an enhanced understanding of efficient mutation analysis techniques. To address these needs for additional information about mutation analysis, we conducted an empirical study of the use of mutation analysis on two open source projects. Our results indicate that a focused effort on increasing mutation score leads to a corresponding increase in line and branch coverage to the point that line coverage, branch coverage and mutation score reach a maximum but leave some types of code structures uncovered. Mutation analysis guides the creation of additional “common programmer error” tests beyond those written to increase line and branch coverage. We also found that 74% of our chosen set of mutation operators is useful, on average, for producing new tests. The remaining 26% of mutation operators did not produce new test cases because their mutants were immediately detected by the initial test suite, indirectly detected by test suites we added to detect other mutants, or were not able to be detected by any test.
引用
收藏
页码:341 / 369
页数:28
相关论文
共 50 条
  • [41] Test Generation and Mutation Analysis of Energy Consumption using UPPAAL SMC and MATS
    Larsson, Jonatan
    Enoiu, Eduard Paul
    2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS, ICSTW, 2023, : 186 - 189
  • [42] Robustness evaluation for deep neural networks via mutation decision boundaries analysis
    Lin, Renhao
    Zhou, Qinglei
    Wu, Bin
    Nan, Xiaofei
    INFORMATION SCIENCES, 2022, 601 : 147 - 161
  • [43] Orderly Generation of Test Data via Sorting Mutant Branches Based on Their Dominance Degrees for Weak Mutation Testing
    Yao, Xiangjuan
    Zhang, Gongjie
    Pan, Feng
    Gong, Dunwei
    Wei, Changqing
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (04) : 1169 - 1184
  • [44] SARS-CoV-2 main protease mutation analysis via a kinematic method
    Chen, Xiyu
    Leyendecker, Sigrid
    van den Bedem, Henry
    PROTEINS-STRUCTURE FUNCTION AND BIOINFORMATICS, 2023, 91 (11) : 1496 - 1509
  • [45] Automatic Test Case Generation for Unit Software Testing Using Genetic Algorithm and Mutation Analysis
    Khan, Rijwan
    Amjad, Mohd.
    2015 IEEE UP SECTION CONFERENCE ON ELECTRICAL COMPUTER AND ELECTRONICS (UPCON), 2015,
  • [46] Mutation Analysis and Model Checking Guided Test Generation for SoC Run-Time Monitors
    Srinivasan, Suriya
    Vemuri, Ranga
    2023 36TH INTERNATIONAL CONFERENCE ON VLSI DESIGN AND 2023 22ND INTERNATIONAL CONFERENCE ON EMBEDDED SYSTEMS, VLSID, 2023, : 240 - 245
  • [47] Mutation analysis of TP53 exons 5-8 by automated constant denaturant capillary electrophoresis
    Bjorheim, J
    Gaudernack, G
    Ekstrom, PO
    TUMOR BIOLOGY, 2001, 22 (05) : 323 - 327
  • [48] Model-based, mutation-driven test case generation via heuristic-guided branching search
    Fellner, Andreas
    Krenn, Willibald
    Schlick, Rupert
    Tarrach, Thorsten
    Weissenbacher, Georg
    MEMOCODE 2017: PROCEEDINGS OF THE 15TH ACM-IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR SYSTEM DESIGN, 2017, : 57 - 67
  • [49] Test-Case Generation for Embedded Simulink via Formal Concept Analysis
    He, Nannan
    Ruemmer, Philipp
    Kroening, Daniel
    PROCEEDINGS OF THE 48TH ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2011, : 224 - 229
  • [50] A Novel Fitness function of metaheuristic algorithms for test data generation for simulink models based on mutation analysis
    Le Thi My Hanh
    Nguyen Thanh Binh
    Khuat Thanh Tung
    JOURNAL OF SYSTEMS AND SOFTWARE, 2016, 120 : 17 - 30