Improved testing through refactoring: experience from the protest project

  • Authors:
  • Huiqing Li;Simon Thompson

  • Affiliations:
  • School of Computing, University of Kent, UK;School of Computing, University of Kent, UK

  • Venue:
  • TAIC PART'10 Proceedings of the 5th international academic and industrial conference on Testing - practice and research techniques
  • Year:
  • 2010

Quantified Score

Hi-index 0.00

Visualization

Abstract

We report on how the Wrangler refactoring tool has been used to improve and transform test code for Erlang systems. This has been achieved through the removal of code clones, the identification of properties for property-based testing and the definition of testing-aware refactorings and test-framework-specific refactorings. While some of the observations are Erlang-specific, others apply to test code in general. We argue that refactoring is particularly valuable within testing. The Wrangler tool for Erlang provides support for clone detection and removal, and this has been used effectively both for clarifying test code and in extracting higher-level properties from test suites. We also report on refactorings within particular test frameworks, and on the constraints on refactorings that test frameworks impose.