Hacker News new | ask | show | jobs
by tlongo 1607 days ago
Drifting branches seems to be the main argument pro feature flags. I wonder how teams avoid breaking parts sleeping behind feature flags, by the ongoing development of its surroundings.
2 comments

>I wonder how teams avoid breaking parts sleeping behind feature flags, by the ongoing development of its surroundings.

Just duplicate the testing jobs with the feature flag flipped. Configure new job to turn expected-failure test cases into expected-pass (or whatever analogous way you keep track of it).

For my employer we write tests for both sides of the flag.
If the flag is obtained from a configuration file, you have a testing configuration where the flag is toggled and you run the tests in your CI/CD pipeline. E.g. we have a development plan where everything is enabled and tested.