summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 6 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 92d227d..f721ebc 100644
--- a/tox.ini
+++ b/tox.ini
@@ -13,7 +13,7 @@ install_command = pip install {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
- python setup.py testr --testr-args='{posargs}'
+ pytest gitlab/tests {posargs}
[testenv:pep8]
commands =
@@ -40,9 +40,11 @@ commands = python setup.py build_sphinx
[testenv:cover]
commands =
- python setup.py testr --slowest --coverage --testr-args="{posargs}"
- coverage report --omit=*tests*
- coverage html --omit=*tests*
+ pytest --cov gitlab --cov-report term --cov-report html \
+ --cov-report xml gitlab/tests {posargs}
+
+[coverage:run]
+omit = *tests*
[testenv:cli_func_v4]
commands = {toxinidir}/tools/functional_tests.sh -a 4