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
来源
关键词
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 条
  • [21] Validating Test Case Migration via Mutation Analysis
    Jovanovikj, Ivan
    Yigitbas, Enes
    Nagaraj, Achyuth
    Anjorin, Anthony
    Sauer, Stefan
    Engels, Gregor
    2020 IEEE/ACM 15TH INTERNATIONAL CONFERENCE ON AUTOMATION OF SOFTWARE TEST, AST, 2020, : 31 - 40
  • [22] Test Suite Reduction via Evolutionary Clustering
    Xia, Chunyan
    Zhang, Yan
    Hui, Zhanwei
    IEEE ACCESS, 2021, 9 : 28111 - 28121
  • [23] Fully automated interoperability test suite derivation for communication protocols
    Seol, S
    Kim, M
    Kang, S
    Ryu, H
    COMPUTER NETWORKS, 2003, 43 (06) : 735 - 759
  • [24] An Automated Test Suite Generating Approach for Stateful Web Services
    Li, Yin
    Sun, Zhi-Guang
    Jiang, Ting-Ting
    SOFTWARE ANALYSIS, TESTING, AND EVOLUTION, SATE 2018, 2018, 11293 : 185 - 201
  • [25] The Influence of Test Suite Properties on Automated Grading of Programming Exercises
    Clegg, Benjamin S.
    McMinn, Phil
    Fraser, Gordon
    2020 IEEE 32ND CONFERENCE ON SOFTWARE ENGINEERING EDUCATION AND TRAINING (CSEE&T), 2020, : 105 - 114
  • [26] Automated mutation analysis
    Ravine, D
    JOURNAL OF INHERITED METABOLIC DISEASE, 1999, 22 (04) : 503 - 518
  • [27] Patterns of Code-to-Test Co-evolution for Automated Test Suite Maintenance
    Shimmi, Samiha
    Rahimi, Mona
    2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST 2022), 2022, : 116 - 127
  • [28] Generating Small Combinatorial Test Suite via LP
    Wang, Lixin
    Wan, Renxia
    Wang, Mingjun
    Li, Minghao
    2009 INTERNATIONAL SYMPOSIUM ON WEB INFORMATION SYSTEMS AND APPLICATIONS, PROCEEDINGS, 2009, : 226 - 229
  • [29] Automated Test Generation and Mutation Testing for Alloy
    Sullivan, Allison
    Wang, Kaiyuan
    Zaeem, Razieh Nokhbeh
    Khurshid, Sarfraz
    2017 10TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION (ICST), 2017, : 264 - 275
  • [30] Instructor-Written Hints as Automated Test Suite Quality Feedback
    Perretta, James
    DeOrio, Andrew
    Guha, Arjun
    Bell, Jonathan
    PROCEEDINGS OF THE 56TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, SIGCSE TS 2025, VOL 1, 2025, : 910 - 916