Affordable Access

Publisher Website

Mutation Testing as a Safety Net for Test Code Refactoring

Authors
  • Parsai, Ali
  • Murgia, Alessandro
  • Soetens, Quinten David
  • Demeyer, Serge
Type
Published Article
Publication Date
Jun 24, 2015
Submission Date
Jun 24, 2015
Identifiers
DOI: 10.1145/2764979.2764987
Source
arXiv
License
Yellow
External links

Abstract

Refactoring is an activity that improves the internal structure of the code without altering its external behavior. When performed on the production code, the tests can be used to verify that the external behavior of the production code is preserved. However, when the refactoring is performed on test code, there is no safety net that assures that the external behavior of the test code is preserved. In this paper, we propose to adopt mutation testing as a means to verify if the behavior of the test code is preserved after refactoring. Moreover, we also show how this approach can be used to identify the part of the test code which is improperly refactored.

Report this publication

Statistics

Seen <100 times