ably
Provides a sane model for dealing with A/B tests.
Install
Using npm:
npm install vgno-ably --save
Using bower:
bower install vgno-ably --save
Usage
Defining tests
var Ably = ; var ably = ; ably;
The code above will create a test named button-color
, sample 80% of people to the red
variant and 20% to the green
one and persist information about the experiment on the device - so that the user will get always the same variant on this device.
Subscribing to variants
ably ;
Subscribe to all variants of a test:
ably ;
Model
Ably contains a collection of experiments.
An experiment has:
- a name
- a sampler which assigns users to variants
- a scope which persists information about the experiment
API Reference
Read more about all supported options in the Documentation.
Browser tests
BrowserStack has gracefully agreed to provide us with a sponsored plan. We will soon start relying on their infrastructure to run automated browser tests.