100% code coverage is a vanity metric. Focus on testing critical user journeys instead.
The Testing Trophy
The classic Testing Pyramid (lots of unit tests, few UI tests) is outdated. We subscribe to the Testing Trophy: Focus heavily on Integration Tests.
Why Playwright?
Playwright has revolutionized E2E testing. It is fast, reliable, and runs on the same engine as your browser. We use it to test full user flows: Login -> Dashboard -> Create Project -> Logout.
Mocking vs Real Services
Mock network requests where possible to keep tests fast and deterministic. But never mock your database logic—spin up a containerized Postgres instance for tests. It is the only way to be sure.
