2 ms·
This is making the assumption that writing tests takes longer to produce code then test without. But it has been shown that TDD can and usually does produce cod
by dalore 8y ago
This is making the assumption that writing tests takes longer to produce code then test without. But it has been shown that TDD can and usually does produce code faster with it. TDD makes you write code that's easier to test, the tests are fast (mere ms). And it gives you confidence in your code, plus locality as you know the error since the tests either pass or fail each step.
Not advocating writing 100% test coverage, but just some code that shows how you will be using the new feature as you add it is enough to help you structure your code.