Comment Comment by d--b The big tdd misunderstanding is to believe that it provides good test coverage.TDD is about designing how a module is going to be used before actually implementing it.It’s about considering the API as a product, rather than a side effect of the implementation.It’s about putting oneself in the user’s shoes, instead of making it as easy as possible for the implementer.Test coverage depends on the implementation, so you can’t design tests that will ensure 100% test coverage before implementing the stuff. parent d--b 4 years ago
TDD is about designing how a module is going to be used before actually implementing it.
It’s about considering the API as a product, rather than a side effect of the implementation.
It’s about putting oneself in the user’s shoes, instead of making it as easy as possible for the implementer.
Test coverage depends on the implementation, so you can’t design tests that will ensure 100% test coverage before implementing the stuff.