4 ms·
> I will never willingly write an end to end test ever again. Unit / module tests + targeted integration tests are the only hope that we have. What are your "i
by jrochkind1 5y ago
> I will never willingly write an end to end test ever again. Unit / module tests + targeted integration tests are the only hope that we have.
What are your "integration" tests that are not "end to end" tests like, how do they differ from end to end tests?
- Jtsummers 5y agoIntegration tests may integrate smaller-than-the-whole groups of subsystems. It definitely gets fuzzy. A lot of people treat end-to-end and integration tests as equivalent, but piecing together everything-but-the-frontend and testing it is also an integration test, but not an end-to-end test. If we consider tests as existing at and covering different scales, unit tests are at the smallest scale and integration tests run the gamut from 2 units to the entire system.
- BurningFrog 5y agoNot OP, but testing groups of the "units" you unit tests can have a lot of value.
- amw-zero 5y agoPicture a test that doesn’t involve any clicking of UI elements. That’s a start. So right there you’re avoiding the complexities of UI rendering, you just call the commands that are invoked by clicking directly. Also, you can test frontend components together, and backend components together, but not cross the client-server boundary. Faster, more reliable. That leaves a very small amount of e2e tests that you even want to write, and by that point I’m totally fine with manual smoke testing or automating them. But they’re the vast minority of tests.