Pakistan Science Abstracts
Article details & metrics
No Detail Found!!
A metric based evaluation of unit tests as specialized clients in refactoring.
Author(s):
1. W. Basit: Department of Computer Science, National University of Computer and Emerging Sciences, Faisal Town, Lahore, Pakistan
2. F. Lodhi: Department of Computer Science, National University of Computer and Emerging Sciences, Faisal Town, Lahore, Pakistan
3. F. Ahmed: Department of Computer Science, National University of Computer and Emerging Sciences, Faisal Town, Lahore, Pakistan
4. 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.
Page(s): 37-53
DOI: DOI not available
Published: Journal: Pakistan Journal of Engineering and Applied Sciences, Volume: 13, Issue: 2, Year: 2013
Keywords:
Keywords are not available for this article.
References:
References are not available for this document.
Citations
Citations are not available for this document.
0

Citations

0

Downloads

21

Views