4 ms·
E2E tests are useful, but I definitely do not agree that they should be the primary target when writing tests. Setting up the correct data conditions for an E2E
by ericyd 3y ago
E2E tests are useful, but I definitely do not agree that they should be the primary target when writing tests. Setting up the correct data conditions for an E2E test to accurately exercise the code is often challenging or sometimes impossible, particularly since E2E tests often execute against a hosted environment with shared resources. Unit tests probably often have room for improvement, but in my experience they are extremely useful for checking code during development before I've produced a final product that could be tested E2E.