3 ms·
Do you write the tests first - before the code - and while still exploring the domain? That's the guiding principle of TDD. Writing tests after the code has be
by julian_1 9y ago
Do you write the tests first - before the code - and while still exploring the domain? That's the guiding principle of TDD.
Writing tests after the code has been written - to lock down behavior, quickly identify breakage, and support refactoring is a valuable process. But it's not the original vision of what constitutes test-driven development.
- collyw 9y agoWhenever I write tests first, they usually fail. I need to do some iterations of the test code as the "real" code until they work. Is there some reason why test code is expected to work first time, yet we need a ton of tests to verify that the "real" code works?