A story about why #TestDrivenDevelopment matters
This week, I have been working on an invoicing system in a legacy codebase. The requirements are to extend the invoice report with additional custom fields. What we'll test here is not the visual, but the (in-memory) field values that are ultimately displayed on the invoice report.
So I first wrote the test for the header fields, _let the test fail_, and continued with the actual implementation until the test passed...
1/?