Testing in production
Also called: test in production, production testing
Last updated:
Testing in production means checking a change on the servers, data and traffic it will actually run against, after it deploys. Staging can't reproduce those. A staging database is a few thousand rows of seed data, and the payment provider behind it is a sandbox that approves every test card, so some bugs wait for real users to find them. Testing in production makes that last check deliberate. The change goes to 1% of users first while someone watches the error rate, and switching it off takes seconds. Unit, integration and staging tests still run before any of this. You'll also see it written as test in production or production testing.
Is testing in production a bad idea?
How feature flags make it safe
isStaff attribute, which is dogfooding, so the feature runs against production data while every customer keeps the current behavior. Next a percentage rollout hands it to 1% of users and then 5%, the opening step of a canary release. Flag configuration is kept per environment, so rules you set in production leave staging alone (the environments guide has the details). If error rates climb, the flag's kill switch moves everyone back to the old path as soon as the SDKs pick up the change, with no redeploy.Common ways to test in production
Safeguards to set up first
Want the full picture? Read the concept guide: Rollout strategies →
Related terms
Dark launch
A dark launch ships a feature to production turned off or invisible to users, so the code runs in the live environment before anyone sees it. You reveal it later on your own schedule.
Canary release
A canary release exposes a new version to a small group of users first and watches its metrics before rolling it out to everyone, so problems surface on a fraction of traffic instead of the whole fleet.
Kill switch
A kill switch is a feature flag used to disable functionality instantly in production: flip it off and every SDK stops running the risky code path within seconds, no redeploy required.
Try it in your own app
The Free plan covers 10 flags and 2 environments. No credit card, no demo call — sign up and ship.