3 ms·
They also serve as a form of code documentation (defining expected behavior). When doing TDD, often speed up development owing to the ability to get much quick
by crdoconnor 10y ago
They also serve as a form of code documentation (defining expected behavior).
When doing TDD, often speed up development owing to the ability to get much quicker feedback on the code you just wrote.
Code without tests has a tendency to congeal owing to the massive uncertainty surrounding changing any particular part.
- dozzie 10y ago> They also serve as a form of code documentation (defining expected behavior). Oh, far from it. Tests are not documentation, documentation is documentation. Tests can be treated as a set of examples at best.
- crdoconnor 10y agoGood well explained tests serve well as documentation. I've used them before in lieu of specifications. Bad tests not so much.