@@ -129,11 +129,11 @@ You need to install ``tox`` to run unit tests and documentation builds locally:
129129
130130.. code-block :: bash
131131
132- # run the unit tests for python 2/3 , and the pep8 tests:
132+ # run the unit tests for all supported python3 versions , and the pep8 tests:
133133 tox
134134
135135 # run tests in one environment only:
136- tox -epy35
136+ tox -epy36
137137
138138 # build the documentation, the result will be generated in
139139 # build/sphinx/html/
@@ -156,6 +156,26 @@ To run these tests:
156156 # run the python API tests:
157157 ./tools/py_functional_tests.sh
158158
159+ By default, the tests run against the ``gitlab/gitlab-ce:latest `` image. You can
160+ override both the image and tag with the ``-i `` and ``-t `` options, or by providing
161+ either the ``GITLAB_IMAGE `` or ``GITLAB_TAG `` environment variables.
162+
163+ This way you can run tests against different versions, such as ``nightly `` for
164+ features in an upcoming release, or an older release (e.g. ``12.8.0-ce.0 ``).
165+ The tag must match an exact tag on Docker Hub:
166+
167+ .. code-block :: bash
168+
169+ # run tests against `nightly` or specific tag
170+ ./tools/py_functional_tests.sh -t nightly
171+ ./tools/py_functional_tests.sh -t 12.8.0-ce.0
172+
173+ # run tests against the latest gitlab EE image
174+ ./tools/py_functional_tests.sh -i gitlab/gitlab-ee
175+
176+ # override tags with environment variables
177+ GITLAB_TAG=nightly ./tools/py_functional_tests.sh
178+
159179 You can also build a test environment using the following command:
160180
161181.. code-block :: bash
0 commit comments