Testing Legacy Systems
Start by leveraging the testing pyramid to establish a solid foundation of unit tests, even in legacy systems. Focus on extracting pure functions from complex logic, which will allow for easier testing and validation of current behavior. As you refactor, aim to gradually increase your suite of automated tests, ultimately enhancing the system's reliability and maintainability.In this clip
From this podcast

Software Engineering Radio - the podcast for professional software developers
SE Radio 637: Steve Smith on Software Quality
Related Questions