180 likes | 287 Views
Easing the pain of legacy tests. O nce upon a time…. Tests run in virtual machines. Over 250,000 lines of code. Flagship product. Multiple SQL Server versions. Over 10,000 automated tests. Continuous Integration. The real story…. Many attempts to fix over the years. == rising complexity
E N D
Tests run in virtual machines Over 250,000 lines of code Flagship product Multiple SQL Server versions Over 10,000 automated tests Continuous Integration
Many attempts to fix over the years == rising complexity == increasing instability
By the end of the week - 95% passing By the end of week 2 - only 1 failure!
Pattern #1 Discuss the problem/failure
Pattern #2 Pair & Review
Pattern #3 Find and fix the quick wins
Pattern #4 De-mystify
Lessons learnt Make best use of the skills on your team Treat test code the same as product code Don’t believe everything you hear Most problems are not hard