Towards Better Code Reviews: Using Mutation Testing to Improve Reviewer Attention

被引:1
作者
Mukhtarov, Ziya [1 ]
Abdul, Mannan [1 ]
Raupova, Mokhlaroyim [1 ]
Baghirov, Javid [1 ]
Tanveer, Osama [1 ]
Altunel, Haluk [1 ]
Tuzun, Eray [1 ]
机构
[1] Bilkent Univ, Ankara, Turkiye
来源
2023 IEEE/ACM INTERNATIONAL CONFERENCE ON SOFTWARE AND SYSTEM PROCESSES, ICSSP | 2023年
关键词
Code review; code review process smells; mutation testing; LGTM smell; reviewer attention;
D O I
10.1109/ICSSP59042.2023.00020
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Code reviews, while effective, can be crippled by process smells if not performed correctly. A typical process smell that harms the efficacy of code reviews is the 'Looks Good To Me' (LGTM) smell, wherein a reviewer approves a code review task without reviewing the code attentively. Low-quality code reviews can be harmful, as they can cause bugs to slip into a product codebase leading to potentially severe consequences. In this paper, we propose an innovative solution to potentially minimize the occurrence of the LGTM smell commonly found in code reviews. We built a tool that is a proof-of-concept implementation of our solution, which incorporates the concept of mutation testing into code reviews. It provides a platform where pull request authors can apply mutations to the pull request code in GitHub. Reviewer attention and review efficacy are measured based on their mutation score. To the best of our knowledge, our proof of concept implementation is the first-ever code review tool that uses the concept of mutation testing. We validated our proposed solution with eight developers and received promising results.
引用
收藏
页码:92 / 96
页数:5
相关论文
共 11 条
[1]   The Care and Feeding of Wild-Caught Mutants [J].
Brown, David Bingham ;
Vaughn, Michael ;
Liblit, Ben ;
Reps, Thomas .
ESEC/FSE 2017: PROCEEDINGS OF THE 2017 11TH JOINT MEETING ON FOUNDATIONS OF SOFTWARE ENGINEERING, 2017, :511-522
[2]   HINTS ON TEST DATA SELECTION - HELP FOR PRACTICING PROGRAMMER [J].
DEMILLO, RA ;
LIPTON, RJ .
COMPUTER, 1978, 11 (04) :34-41
[3]   Towards a taxonomy of code review smells [J].
Dogan, Emre ;
Tuzun, Eray .
INFORMATION AND SOFTWARE TECHNOLOGY, 2022, 142
[4]  
Google, 2020, GOOGL ENG PRACT DOC
[5]   IBIR: Bug-report-driven Fault Injection [J].
Khanfir, Ahmed ;
Koyuncu, Anil ;
Papadakis, Mike ;
Cordy, Maxime ;
Bissyande, Tegawende F. ;
Klein, Jacques ;
Le Traon, Yves .
ACM TRANSACTIONS ON SOFTWARE ENGINEERING AND METHODOLOGY, 2023, 32 (02)
[6]   Catching up with Method and Process Practice: An Industry-Informed Baseline for Researchers [J].
Kluender, Jil ;
Hebig, Regina ;
Tell, Paolo ;
Kuhrmann, Marco ;
Nakatumba-Nabende, Joyce ;
Heldal, Rogardt ;
Krusche, Stephan ;
Fazal-Baqaie, Masud ;
Felderer, Michael ;
Genero Bocco, Marcela Fabiana ;
Kuepper, Steffen ;
Licorish, Sherlock A. ;
Lopez, Gustavo ;
McCaffery, Fergal ;
Top, Ozden Ozcan ;
Prause, Christian R. ;
Prikladnicki, Rafael ;
Tuzun, Eray ;
Pfahl, Dietmar ;
Schneider, Kurt ;
MacDonell, Stephen G. .
2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING: SOFTWARE ENGINEERING IN PRACTICE (ICSE-SEIP 2019), 2019, :255-264
[7]  
Mateo P. R., 2012, 2012 IEEE Fifth International Conference on Software Testing, Verification and Validation (ICST 2012), P664, DOI 10.1109/ICST.2012.156
[8]   Mutation Testing Advances: An Analysis and Survey [J].
Papadakis, Mike ;
Kintis, Marinos ;
Zhang, Jie ;
Jia, Yue ;
Le Traon, Yves ;
Harman, Mark .
ADVANCES IN COMPUTERS, VOL 112, 2019, 112 :275-378
[9]   Semantic Bug Seeding: A Learning-Based Approach for Creating Realistic Bugs [J].
Patra, Jibesh ;
Pradel, Michael .
PROCEEDINGS OF THE 29TH ACM JOINT MEETING ON EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE '21), 2021, :906-918
[10]  
Spiess L., 2017, WE DO CODE REV