/plushcap/analysis/launchdarkly/best-practices-for-testing-code-under-feature-flags

Best Practices for Testing Code Under Feature Flags

What's this blog post about?

Testing code under various flags is crucial in ensuring software quality and functionality. There are five main approaches to achieve this: creating a dedicated LaunchDarkly testing environment, setting the SDK to offline mode, using a Redis cache with LDD mode enabled, engineering a mock SDK for testing, or building a custom feature store for testing. Each approach has its own advantages and disadvantages, depending on factors such as scalability, control over flag configurations, and network requests made during testing.

Company
LaunchDarkly

Date published
Nov. 28, 2018

Author(s)
John Winstead

Word count
515

Language
English

Hacker News points
None found.


By Matt Makai. 2021-2024.