3 ms·
The test case programs/expressions input into a compiler are external regression test cases. By itself, that is not TDD. External compiler tests may seem TDD-l
by kazinator 8y ago
The test case programs/expressions input into a compiler are external regression test cases. By itself, that is not TDD.
External compiler tests may seem TDD-like because they exist first, and make the compiler fail until the required features are working.
TDD is about bogging down the code with internal tests that treat every aspect of the code as a committed feature.
You cannot do a single thing that doesn't first fail some newly added test, which then goes green.
- crdoconnor 8y agoI call this "unit test driven development". I find it pretty horrible unless the code is largely algorithmic. ATDD works though.