If your development environment requires unit tests, we recommend running tests on your code that is integrated to Split SDK for all possible treatments values returned from SDK's getTreatment call. The SDK Localhost mode is the best option to achieve this while keeping your code integrated to SDK.
Each SDK language support localhost mode which reads the Split names and their treatments from a local Yaml file, instead of connecting to Split cloud. This enable creating multiple Yaml files, each with unique treatment values and cycle through all the possible treatments returned from each Split.
As mentioned above, using localhost mode does not require any network connection to Split cloud and will not write any Impressions records to the Split account, making the unit test runs smoothly.
To learn how to use localhost mode, please check the corresponding SDK language page, under Localhost section in this link.
We also have a Python script that automatically create Yaml files containing Split names and their treatments from given Splits list.
Comments
0 comments
Please sign in to leave a comment.