Overview
Discover strategies for retrofitting test frameworks onto existing code and developing a test suite for legacy software in this one-hour conference talk. Learn about characterization testing, code coverage measurements, and refactoring techniques to improve maintenance tasks. Explore the challenges of working with untested code and understand why 100% test coverage may not be a realistic goal. Gain insights into using code coverage tools effectively and deciding between testing and debugging approaches. Apply these lessons to dramatically enhance the robustness and maintainability of legacy software projects.
Syllabus
Intro
What is Legacy Code?
Give Up #1: 100% Test Coverage
Characterization Testing
Code Coverage Measurements!
A Code Coverage Report
Code Coverage Tools
Test or debug?
Refactoring
Summing Up
Taught by
Devoxx