Be the first to like this
When working with legacy code, subsequent covering with unit tests is not an easy task. Quite often one is faced with the dilemma of refactoring - you need tests for safely refactorings, but the code needs to be refactored first in order to write any tests.
Bringing existing code in better shape is essential when existing code must be covered with unit tests. In this presentation we focus on refactorings that are targeted for covering legacy code with unit tests, after it has been written without tesing in mind.
This is the handout for the presentation. See also:
- Slides: http://www.slideshare.net/rfilipov/refactoring-for-tests-0lides
- Sources: https://github.com/rusio/refactoring-for-tests