summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2020-02-23 20:49:33 +0100
committerNejc Habjan <hab.nejc@gmail.com>2020-04-07 23:31:32 +0200
commit9787a407b700f18dadfb4153b3ba1375a615b73c (patch)
treeb64e1e5261b1e146a9fabf19389089f1e17bf4fa /tox.ini
parent22d4b465c3217536cb444dafe5c25e9aaa3aa7be (diff)
downloadgitlab-9787a407b700f18dadfb4153b3ba1375a615b73c.tar.gz
chore: use pytest for unit tests and coverage
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