Skip to content

Commit e0851bc

Browse files
committed
Documentation / release note for #12
1 parent 867c0c9 commit e0851bc

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Changelog
55
~~~~~~~~~~~~~~~~~~
66

77
* Add support for Wagtail 1.8 - 2.3 and Django 1.11 - 2.1
8-
8+
* Added experiment-data management command
99

1010
0.1.2 (10.11.2016)
1111
~~~~~~~~~~~~~~~~~~

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,17 @@ Returns report data for ``experiment``, consisting of a dict containing:
106106

107107
``history``
108108
A list of dicts showing the breakdown of participants and completions over time; each dict contains ``date``, ``participant_count`` and ``completion_count``.
109+
110+
111+
Test data
112+
---------
113+
114+
wagtail-experiments provides a management command ``experiment-data``, to allow populating an experiment with dummy data for testing or demonstration purposes, and purging existing data. This command is called with the experiment's slug::
115+
116+
# Populate the experiment 'homepage-banner' with 5 days of test data,
117+
# with 100-200 views per variation. All parameters other than experiment slug
118+
# are optional
119+
./manage.py experiment-data homepage-banner --days 5 --min=100 --max=200
120+
121+
# Purge data for the experiment 'homepage-banner'
122+
./manage.py experiment-data homepage-banner --purge

0 commit comments

Comments
 (0)