Abstract
The key issue for effective refactoring is to ensure that observable behavior of the code will not change. Use of regression tests is the suggested method for verifying this property, but they appear to be not well suited for applying refactorings. The tests verify the domain-specific code relations, and often neglect properties important for the given refactoring or check the ones that actually change. In the paper we present a concept of generic refactoring tests, which are oriented toward the refactorings rather than the code. They can be generated automatically, are able to adapt to changes introduced by refactorings and learn the specifics of the tested code.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Beck, K.: Extreme Programming Explained. Embrace Change. Addison-Wesley, Reading (2000)
Beck, K., Gamma, E.: Test infected: Programmers love writing tests. Java Report 3(7), 51–56 (1998)
Fowler, M.: Refactoring, Improving the Design of Existing Code. Addison-Wesley, Reading (1999)
Gamma, E., et al.: Design Patterns, Elements of Reusable Object-Oriented Software. Addison-Wesley, Reading (1995)
Walter, B.: Extending Testability for Automated Refactoring. In: Marchesi, M., Succi, G. (eds.) XP 2003. LNCS, vol. 2675, pp. 429–430. Springer, Heidelberg (2003)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Walter, B., Pietrzak, B. (2004). Automated Generation of Unit Tests for Refactoring. In: Eckstein, J., Baumeister, H. (eds) Extreme Programming and Agile Processes in Software Engineering. XP 2004. Lecture Notes in Computer Science, vol 3092. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-24853-8_25
Download citation
DOI: https://doi.org/10.1007/978-3-540-24853-8_25
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-22137-1
Online ISBN: 978-3-540-24853-8
eBook Packages: Springer Book Archive