Feature flagging and testing

LaunchDarkly
By Edith Harbaugh   •   August 22, 2016
LaunchDarkly

Sam Stokes, Rapportive co-founder, has this tip on testing and feature flagging:

"I've found that explicitly testing both sides of the flag can help with managing the increased complexity a flag introduces.  It helps you catch changes down the line that would have broken the old, forgotten code path that 10% of customers are still on.  It provides reminders to clean up the old code and delete the flag (via occasionally breaking the tests).  And it provides some pushback against having too many interacting flags (if you had to write 8 tests for one function because it depended on three separate feature flags, maybe it's time to refactor that function, or retire some flags)."

Sam Stokes regularly blogs here.

You May Like
BEST PRACTICESTesting in Production to Stay Safe and Sensible
BEST PRACTICESWhat Is Continuous Testing? A Straightforward Introduction
JULY 29, 2021   •   HOMEPAGE FEATUREDMy Experience as a Career Switcher in Tech
JULY 27, 2021   •   INDUSTRY INSIGHTSNot an Engineer? Find Out Where You Belong
JULY 22, 2021   •   INDUSTRY INSIGHTSA Day in the Life of a Technical Writer
JULY 20, 2021   •   POPULARA Beginners Guide to Feature Management for Federal Agencies