Inferring Refactoring Intention from Test Case Modification

Yuan Gao, Hui Liu*, Xiao Zhong Fan, Zhen Dong Niu

*Corresponding author for this work

Research output: Contribution to journalArticlepeer-review

2 Citations (Scopus)

Abstract

Existing tools/methods are used to infer refactoring according to production code change in traditional development mode. In the test-driven development (TDD), there are few tools can be used to guide test driven refactoring. In this paper, an approach was proposed to inferring refactoring intension from test case modifications. Firstly, the test code modification was captured with a monitor, and then the potential refactoring was inferred from the captured modification according to predefined heuristics. The proposed approach has been implemented and evaluated with two real applications. Evaluation results show that compared with existing approach the precision increases by 15% and the recall increases by 33.3%~42.8%.

Original languageEnglish
Pages (from-to)537-543
Number of pages7
JournalBeijing Ligong Daxue Xuebao/Transaction of Beijing Institute of Technology
Volume37
Issue number5
DOIs
Publication statusPublished - 1 May 2017

Keywords

  • Code smell
  • Refactoring intention
  • Test case
  • Test-driven

Fingerprint

Dive into the research topics of 'Inferring Refactoring Intention from Test Case Modification'. Together they form a unique fingerprint.

Cite this