stanza-ab

0.0.8 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i stanza-ab

Weekly Downloads

3

Version

0.0.8

License

ISC

Unpacked Size

4.67 kB

Total Files

5

Last publish

Collaborators

  • mattatstanza