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.
These are the slides of the presentation. See also:
- Handout: http://www.slideshare.net/rfilipov/refactoring-fortests-handout
- Sources: https://github.com/rusio/refactoring-for-tests
- Update: http://www.slideshare.net/rfilipov/refactoring-fortestability