configuration-feature-flag-testing
Installation
SKILL.md
Configuration & Feature-Flag Testing
Configuration is code that skips code review. Most outages after deploy are config or flag changes, not code.
Feature flags — test the combinatorics smartly
- Each flag adds a code path; N flags = 2^N states. Don't test all — test: (1) all default/OFF (production baseline), (2) each flag ON alone, (3) known-interacting pairs (pairwise,
test-design-techniques), (4) the "next release" state. - Test both sides of every flag in CI (
FLAGS=new_checkout:on|off), including the fallback/default value when the flag service is down or times out (must fail safe). - Flag types: release, experiment (
a-b-testing), ops/kill-switch, permission. Different lifecycles & owners.
// OpenFeature with in-memory provider for deterministic tests
OpenFeature.setProvider(new InMemoryProvider({ 'new-checkout': { defaultVariant:'off', variants:{on:true, off:false}, disabled:false }}));