diff options
| author | Nejc Habjan <hab.nejc@gmail.com> | 2020-02-23 20:49:33 +0100 |
|---|---|---|
| committer | Nejc Habjan <hab.nejc@gmail.com> | 2020-04-07 23:31:32 +0200 |
| commit | 9787a407b700f18dadfb4153b3ba1375a615b73c (patch) | |
| tree | b64e1e5261b1e146a9fabf19389089f1e17bf4fa /tox.ini | |
| parent | 22d4b465c3217536cb444dafe5c25e9aaa3aa7be (diff) | |
| download | gitlab-9787a407b700f18dadfb4153b3ba1375a615b73c.tar.gz | |
chore: use pytest for unit tests and coverage
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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 |
