Best Practices for Testing Code Under Feature Flags
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
Hacker News points
None found.
Language
English