3 ms·
About the only time I consistently code the test first is to reproduce defects. It's really useful in that case. Sometimes that also works for features. When d
by lolc 7y ago
About the only time I consistently code the test first is to reproduce defects. It's really useful in that case. Sometimes that also works for features.
When designing an interface I like to write usage examples. They're more nimble to work with than tests who require scaffolding. The usage examples do tend to become tests during implementation.