Code Defenders: Crowdsourcing Effective Tests and Subtle Mutants with a Mutation Testing Game

被引:25
|
作者
Rojas, Jose Miguel [1 ]
White, Thomas D. [1 ]
Clegg, Benjamin S. [1 ]
Fraser, Gordon [1 ]
机构
[1] Univ Sheffield, Dept Comp Sci, Sheffield, S Yorkshire, England
基金
英国工程与自然科学研究理事会;
关键词
D O I
10.1109/ICSE.2017.68
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Writing good software tests is difficult and not every developer's favorite occupation. Mutation testing aims to help by seeding artificial faults (mutants) that good tests should identify, and test generation tools help by providing automatically generated tests. However, mutation tools tend to produce huge numbers of mutants, many of which are trivial, redundant, or semantically equivalent to the original program; automated test generation tools tend to produce tests that achieve good code coverage, but are otherwise weak and have no clear purpose. In this paper, we present an approach based on gamification and crowdsourcing to produce better software tests and mutants: The CODE DEFENDERS web-based game lets teams of players compete over a program, where attackers try to create subtle mutants, which the defenders try to counter by writing strong tests. Experiments in controlled and crowdsourced scenarios reveal that writing tests as part of the game is more enjoyable, and that playing CODE DEFENDERS results in stronger test suites and mutants than those produced by automated tools.
引用
下载
收藏
页码:677 / 688
页数:12
相关论文
共 8 条
  • [1] CODE DEFENDERS: A Mutation Testing Game
    Rojas, Jose Miguel
    Fraser, Gordon
    2016 IEEE NINTH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2016, : 162 - 167
  • [2] Teaching Software Testing with the Code Defenders Testing Game: Experiences and Improvements
    Fraser, Gordon
    Gambi, Alessio
    Rojas, Jose Miguel
    2020 IEEE 13TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW), 2020, : 461 - 464
  • [3] Teaching Software Testing with the Code Defenders Testing Game: Experiences and Improvements
    Fraser, Gordon
    Gambi, Alessio
    Rojas, Jose Miguel
    Proceedings - 2020 IEEE 13th International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2020, 2020, : 461 - 464
  • [4] A Preliminary Report on Gamifying a Software Testing Course with the Code Defenders Testing Game
    Fraser, Gordon
    Gambi, Alessio
    Rojas, Jose Miguel
    PROCEEDINGS OF THE 3RD EUROPEAN CONFERENCE OF SOFTWARE ENGINEERING EDUCATION (ECSEE), 2018, : 50 - 54
  • [5] Mutation Testing in Evolving Systems: Studying the Relevance of Mutants to Code Evolution
    Ojdanic, Milos
    Soremekun, Ezekiel
    Degiovanni, Renzo
    Papadakis, Mike
    Le Traon, Yves
    ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (01)
  • [6] MQP: Mutants Quality Prediction for Cost-Effective Mutation Testing
    Wang, Xingya
    Zhang, Shiyu
    Liu, Fangxiao
    Feng, Lichao
    Zhao, Zhihong
    2021 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C 2021), 2021, : 45 - 50
  • [7] A Cost-effective and Machine-learning-based method to identify and cluster redundant mutants in software mutation testing
    Arasteh, Bahman
    Ghaffari, Ali
    JOURNAL OF SUPERCOMPUTING, 2024, 80 (12): : 16711 - 16743
  • [8] A Cost-effective and Machine-learning-based method to identify and cluster redundant mutants in software mutation testing (Apr, 10.1007/s11227-024-06107-8, 2024)
    Arasteh, Bahman
    Ghaffari, Ali
    JOURNAL OF SUPERCOMPUTING, 2024, 80 (13): : 19943 - 19943