Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can’t test all error cases end to end. If you can you have shitty error handling.

Clock skew between servers? Drifting clock skew? Disk space exhaustion? Disk space exhaustion at each possible failure point? There are so many of these and you’re going to inject most of them in unit tests.

My original point was that if you can’t write good unit tests your e2e tests are also going to be lousy, and you will never get good at either, let alone both, if you fixate on more coverage with E2E tests.

They’re also just too damned expensive even if they were qualitatively as good. Which they are not. They are less numerous, sure, but that’s false economy because they are usually 3 orders of magnitude slower.



Of course you can. Part of the end-to-end test is to setup the test scenarios you want to test (including limited HD space etc.)


You're going to spin up a vm with the wrong system time, and then advance it between two operations that take 200 ms on a live system?

Bullshit.


What a BS straw man answer. There are much easier ways to do that kind of testing.


They are only slow if you do it wrong.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: