File: USAGE

package info (click to toggle)
ruby-gitlab-experiment 0.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: ruby: 1,202; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 775 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description:
    Stubs out a new experiment and its variants. Pass the experiment name,
    either CamelCased or under_scored, and a list of variants as arguments.

    To create an experiment within a module, specify the experiment name as a
    path like 'parent_module/experiment_name'.

    This generates an experiment class in app/experiments and invokes feature
    flag, and test framework generators.

Example:
    `rails generate gitlab:experiment NullHypothesis control candidate alt_variant`

    NullHypothesis experiment with default variants.
        Experiment:   app/experiments/null_hypothesis_experiment.rb
        Feature Flag: config/feature_flags/experiment/null_hypothesis.yaml
        Test:         test/experiments/null_hypothesis_experiment_test.rb