The Only Two Tests That Matter
Most tests are meaningless noise. If you want to do it right, only two types matter:
Component Tests – Test behavior, not mocks. Fake external services, ensure input/output works, and confidently. With that it’s easy to generate API docs & client libs without experience pact tests.
E2E Tests – Run 24/7, track real user behavior, log metrics, measure uptime, bugs, performance, and resilience. No need for e2e tests in CI pipelines if testing every environment.
Both test behavior, not code. You can refactor without touching tests as they only break when behavior breaks. If tests are slow, your implementation is the problem. Even a Raspberry Pi can handle it.
And above all: Tests must run locally. No excuses. It’s important for debugging and reproduction of user behaviors.