2 ms·
It's my turn to disagree with something in the article. > Before you make any changes at all write as many end-to-end and integration tests as you can. I'm be
by hinkley 9y ago
It's my turn to disagree with something in the article.
> Before you make any changes at all write as many end-to-end and integration tests as you can.
I'm beginning to see this as a failure mode in and of itself. Once you give people E2E tests it's the only kind of tests they want to write. It takes about 18 months for the wheels to fall off so it can look like a successful strategy. What they need to do is learn to write unit tests, but You have to break the code up into little chunks. It doesn't match their aesthetic sense and so it feels juvenile and contrived. The ego kicks in and you think you're smart enough you don't have to eat your proverbial vegetables.
The other problem is e2e tests are slow, they're flaky, and nobody wants to think about how much they cost in the long run because it's too painful to look at. How often have you see two people huddled over a broken E2E test? Multiply the cost of rework by 2.