No Detail Found!

A metric based evaluation of unit tests as specialized clients in refactoring.

Author(s)
W. Basit Department of Computer Science, National University of Computer and Emerging Sciences, Faisal Town, Lahore, Pakistan
F. Lodhi Department of Computer Science, National University of Computer and Emerging Sciences, Faisal Town, Lahore, Pakistan
F. Ahmed Department of Computer Science, National University of Computer and Emerging Sciences, Faisal Town, Lahore, Pakistan
M. U. Bhatti Rmod Team, Inria Lille - Nord Europe, France
Abstract
In the context of refactoring, a unit test significantly differs from an ordinary client. A unit test is the only safety net available to verify the impact of refactoring. In addition, tight coupling and stronger association with the refactored class are its key discriminating characteristics. Hence, any change in the code readily affects the behavior and quality of the test code. But if test code is adapted and refactored along the production code, its behavior shall be preserved and quality may improve. In this paper with the help of quality metrics, we establish the fact that unit test is a different type of client that needs “special“ handling in the context of refactoring. We demonstrate through most commonly used refactoring on an open source project that there is a need to enhance the existing refactoring support for Java to include the specific adaptation mechanism for unit tests that eradicates the effect of refactoring and also improves the internal structure of test code.
Publication Details
Page(s) 37-53
DOI DOI not available
Published Journal: Pakistan Journal of Engineering and Applied Sciences, Volume: 13, Issue: 2, Year: 2013

Request the full text from PASTIC

0

Citations

0

Downloads

50

Views