What is Legacy Code?
It is myth?* Code written by another team* Hasn’t touch for many years* Your are afraid to touch* Not have automated tests
How To Start?
Write Any Test (Quick and Easy)Broad Better than NarrowLess tests is better than No TestsIf Existing Flaky Tests (Study and Remove or Mock)
Characterization Tests
Really complicated algorithmCreate a test with wrong values, run it, fails and then we fix it
Tests By Division
Write test for each separated task/flowFront-End you are in trouble try to reduce to API levelFocus on Main Path, avoid edge cases
Test Or Debug
When a user found an issue:* Test means you understand the bug* Debug useful for understanding the code
Top Related