The cure for this is to apply the Four Rules of Simple design while you maintain the tests. The rules, as suggested by Kent Beck, are:
- Test pass
- Express intent
- No duplication
Thomas will take a test suite for a web application and by following the Four Rules of Simple design, transform it step by step into something that is easier to maintain.
This will be a live coding session with a lot of refactoring. All steps will be small and you will therefore be able to follow even if your main profession isn’t writing code. After this session, you will know that even the most horrible test code is possible to clean up just by slowly transforming the code in small steps.