0.0.8 • Published 3 years ago

stanza-ab v0.0.8

Weekly downloads
8
License
ISC
Repository
github
Last release
3 years ago

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): boolean
Stab.groupNum(testName: string): number
Stab.getGroups(): [key: string]: string
0.0.8

3 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago