Journey to TDD - Journey to Stable System
If you found this article and want to start at the beginning, this series starts here.
Adding a single test to the legacy system puzzle will help you immensely.
Where to add that test??
The best place is to add the test however the current stakeholders validate the system is working.
Consider this to be the “core functionality” - having tests around this is paramount to changing the system from a legacy system to a system that you love working on.
The journey of a stable system, starts with a single test.
Having a test on the core functionality is critical because that’s what current stakeholders expect of the system. There are smoke tests around it. The stakeholders know how to test for it.
Creating an automate test will ensure this functionality will not break as the test will validate it every time you run the tests.
If you’re working with a web application, selenium might be your best friend.