Test-driven development is helpful, but it misses the mark in certain key areas
💬 Chat with this Video
Ask anything about this video…
⏱ Full Transcript — click any timestamp to jump
Test driven development does not do in my experience a good job of testing for negative outcome, right? It's, you know, write the code, write the or write the test, make sure that the test says it fail, write the code, the test passes, cool, go on to the next thing, right? No, no, no, no. Test passes, great. Now, what could go wrong, right? What are the other scenarios? How do you write tests for those? That kind of stuff. TDD is not great at pushing people in that direction. Second problem with TDD is it's, in my opinion, too localized. When I write my TDD tests, when I write my localized tests, I'm writing my tests to test that the code does what I think the code should do, right? And if my understanding of what the code should do differs from what somebody else on the project thinks the code should do, and our code are interacting with each other, then the set of things as they talk to each other end-to-end is not going to work. But, it's not possible for us to do that each individually. You've got to have end-to-end tests for that to happen.
Generated algorithmically for Search Engine
Indexing.