Production Tests: Catch Bugs Early, Fix Them Faster

2025-05-20

This post advocates for production tests – automated tests run directly in the production environment to provide immediate alerts of failures. These tests, often running every minute, offer early warnings of regressions, allowing for fixes before impacting customers. The author details the benefits, design considerations (like test simplicity and avoiding false positives), and implementation specifics. Production tests are contrasted with health checks, emphasizing their complementary roles in enhancing system reliability and observability. The key is to start small, focusing on crucial functionalities, gradually expanding coverage.

Development production testing