2 ms·
He's not discouraging automated testing; he's just saying that we should prefer integration tests (using services running locally) to unit tests of individual f
by jasonhansel 4y ago
He's not discouraging automated testing; he's just saying that we should prefer integration tests (using services running locally) to unit tests of individual functions. Look up "testing trophy" for more about this philosophy.
- recroad 4y agoTotally with you on the value of integration tests. I'm familiar with the trophy and the triangle, but he's saying this: '..with unit tests notably coming in last place – i.e. “only if you have some time”.' The "only if you have time" part is what I disagree with. If we're doing TDD then I don't see how you can avoid writing unit tests, or even deprioritize them. It's also kind of weird to separate them like that, as Fowler discussed here: https://martinfowler.com/articles/2021-test-shapes.html https://martinfowler.com/articles/2021-test-shapes.html
- pgwhalen 4y ago> The "only if you have time" part is what I disagree with. If we're doing TDD then I don't see how you can avoid writing unit tests, or even deprioritize them. Perhaps the author doesn't recommend TDD? They don't suggest anywhere that they do. It seems to me that the industry these days sees TDD as a tool for occasional use, not the dogma once proposed.