4 ms·
I was going to write almost this same comment. It felt like the author wanted to test all of their dependencies in their unit tests, like that was the part of
by bot314159 3y ago
I was going to write almost this same comment.
It felt like the author wanted to test all of their dependencies in their unit tests, like that was the part of the system they didn’t trust. They don’t seem to value testing that their code functions as intended given expected behaviour of the dependencies.
- ebiester 3y agoWe rarely write unit tests because we are worried about missing an edge case while writing the code. It's often faster to manually test than write the automated case. We write tests because we need a specification that lives past that moment in time. We also write tests because other parts of the system change because business requirements change in other parts of the system, and the necessary conversation doesn't happen. I trust what the system does on July 9, 2023. I don't trust what the system will do on July 9, 2024. How do I guard against that?