3 ms·
If you do TDD, you catch bugs before the code is even written. I don't write a million tests. There are much better strategies for testing. Simple tests that
by BurningFrog 5y ago
If you do TDD, you catch bugs before the code is even written.
I don't write a million tests. There are much better strategies for testing.
Simple tests that just executes the code will catch the vast majority of type mistakes.
- whakim 5y agoIf you're just testing pieces of code in isolation, then you're either writing lots of tests or making assumptions about the kinds of input that your function could reasonably receive or return. If you're testing end-to-end, you're either writing lots of (much more expensive) tests or you're missing corner cases. I don't think that's problematic per se. Testing is just a bit of a mismatch for the problems that type systems solve.