File tree Expand file tree Collapse file tree 6 files changed +20
-12
lines changed
Expand file tree Collapse file tree 6 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 11* .pyc
22build /
33dist /
4+ htmlcov /
45MANIFEST
56. * .swp
67* .egg-info
78.idea /
9+ coverage.xml
810docs /_build
9- .testrepository /
11+ .coverage
1012.tox
13+ .venv /
1114venv /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8383 script :
8484 - pip3 install tox
8585 - tox -e py38
86+ - stage : test
87+ dist : bionic
88+ name : coverage
89+ python : 3.8
90+ script :
91+ - pip3 install tox
92+ - tox -e cover
8693 allow_failures :
8794 - env : GITLAB_TAG=nightly
Original file line number Diff line number Diff line change 11include COPYING AUTHORS ChangeLog.rst RELEASE_NOTES.rst requirements.txt test-requirements.txt rtd-requirements.txt
2- include tox.ini .testr.conf . travis.yml
2+ include tox.ini .travis.yml
33recursive-include tools *
44recursive-include docs *j2 *.py *.rst api/*.rst Makefile make.bat
55recursive-include gitlab/tests/data *
Original file line number Diff line number Diff line change 11coverage
2- discover
3- testrepository
42hacking>=0.9.2,<0.10
53httmock
64jinja2
75mock
6+ pytest
7+ pytest-cov
88sphinx>=1.3
99sphinx_rtd_theme
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ install_command = pip install {opts} {packages}
1313deps = -r{toxinidir}/requirements.txt
1414 -r{toxinidir}/test-requirements.txt
1515commands =
16- python setup.py testr -- testr-args = ' {posargs}'
16+ pytest gitlab/tests {posargs}
1717
1818[testenv:pep8]
1919commands =
@@ -40,9 +40,11 @@ commands = python setup.py build_sphinx
4040
4141[testenv:cover]
4242commands =
43- python setup.py testr --slowest --coverage --testr-args =" {posargs}"
44- coverage report --omit =*tests*
45- coverage html --omit =*tests*
43+ pytest --cov gitlab --cov-report term --cov-report html \
44+ --cov-report xml gitlab/tests {posargs}
45+
46+ [coverage:run]
47+ omit = *tests*
4648
4749[testenv:cli_func_v4]
4850commands = {toxinidir}/tools/functional_tests.sh -a 4
You can’t perform that action at this time.
0 commit comments