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 条
  • [21] Automated and Optimized Software Test Suite Generation Technique for Structural Testing1
    Devasena, M. S. Geetha
    Gopu, G.
    Valarmathi, M. L.
    INTERNATIONAL JOURNAL OF SOFTWARE ENGINEERING AND KNOWLEDGE ENGINEERING, 2016, 26 (01) : 1 - 13
  • [22] A new approach to automated test data generation in mutation testing
    Institute of Software, School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China
    不详
    Jisuanji Xuebao, 2008, 6 (1025-1034): : 1025 - 1034
  • [23] Test Suite Reduction for Self-organizing Systems: A Mutation-based Approach
    Reichstaller, Andre
    Eberhardinger, Benedikt
    Ponsar, Hella
    Knapp, Alexander
    Reif, Wolfgang
    2018 IEEE/ACM 13TH INTERNATIONAL WORKSHOP ON AUTOMATION OF SOFTWARE TEST (AST), 2018, : 64 - 70
  • [24] Supporting unit test generation via automated isolation
    Honfi D.
    Micskei Z.
    Periodica polytechnica Electrical engineering and computer science, 2017, 61 (02): : 116 - 131
  • [25] An Investigation into the Use of Mutation Analysis for Automated Program Repair
    Timperley, Christopher Steven
    Stepney, Susan
    Le Goues, Claire
    SEARCH BASED SOFTWARE ENGINEERING, SSBSE 2017, 2017, 10452 : 99 - 114
  • [26] Automated Mutation-based Test Case Evaluation for Semantic Web Services
    Jokhio, M. Shaban
    Dobbie, Gillian
    Hu, Tianming
    Sun, Jing
    2014 23RD AUSTRALASIAN SOFTWARE ENGINEERING CONFERENCE (ASWEC), 2013, : 210 - 219
  • [27] Adopting Social Group Optimization Algorithm Using Mutation Testing for Test Suite Generation: SGO-MT
    Rani, Shweta
    Suri, Bharti
    COMPUTATIONAL SCIENCE AND ITS APPLICATIONS, ICCSA 2019, PT IV, 2019, 11622 : 520 - 528
  • [28] Automatic Mutation Test Input Data Generation via Ant Colony
    Ayari, K.
    Bouktif, S.
    Antoniol, G.
    GECCO 2007: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOL 1 AND 2, 2007, : 1074 - 1081
  • [29] Exposing Library API Misuses via Mutation Analysis
    Wen, Ming
    Liu, Yepang
    Wu, Rongxin
    Xie, Xuan
    Cheung, Shing-Chi
    Su, Zhendong
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2019), 2019, : 866 - 877
  • [30] Testing Delegation Policy Enforcement via Mutation Analysis
    Nguyen, Phu H.
    Papadakis, Mike
    Rubab, Iram
    IEEE SIXTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2013), 2013, : 34 - 42