stanza-ab
v0.0.8
Published
Stanza AB testing library
Downloads
7
Readme
Stab
STanza A-B testing
Test Configuration
Stab expects an object specifying which tests to run, and which percentage of users should be in each group. Most ofen, you'll want to just test with two groups per test.
type ABConfig = {
[testName: string]: Array<Number>
};Eg:
const config = {
homepageText: [4, 1], // 4/5ths of users in group A, 1/5th of users in group B
addButton: [1, 1], // 50/50
landingPage: [1, 2, 1, 1] // 20% 40% 20% 20% split
};Stab.configure(config: ABConfig)Stab.groupA(testName: string): boolean
Stab.groupB(testName: string): booleanStab.groupNum(testName: string): numberStab.getGroups(): [key: string]: string