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 1
1
* .pyc
2
2
build /
3
3
dist /
4
+ htmlcov /
4
5
MANIFEST
5
6
. * .swp
6
7
* .egg-info
7
8
.idea /
9
+ coverage.xml
8
10
docs /_build
9
- .testrepository /
11
+ .coverage
10
12
.tox
13
+ .venv /
11
14
venv /
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 83
83
script :
84
84
- pip3 install tox
85
85
- 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
86
93
allow_failures :
87
94
- env : GITLAB_TAG=nightly
Original file line number Diff line number Diff line change 1
1
include 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
3
3
recursive-include tools *
4
4
recursive-include docs *j2 *.py *.rst api/*.rst Makefile make.bat
5
5
recursive-include gitlab/tests/data *
Original file line number Diff line number Diff line change 1
1
coverage
2
- discover
3
- testrepository
4
2
hacking>=0.9.2,<0.10
5
3
httmock
6
4
jinja2
7
5
mock
6
+ pytest
7
+ pytest-cov
8
8
sphinx>=1.3
9
9
sphinx_rtd_theme
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ install_command = pip install {opts} {packages}
13
13
deps = -r{toxinidir}/requirements.txt
14
14
-r{toxinidir}/test-requirements.txt
15
15
commands =
16
- python setup.py testr -- testr-args = ' {posargs}'
16
+ pytest gitlab/tests {posargs}
17
17
18
18
[testenv:pep8]
19
19
commands =
@@ -40,9 +40,11 @@ commands = python setup.py build_sphinx
40
40
41
41
[testenv:cover]
42
42
commands =
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*
46
48
47
49
[testenv:cli_func_v4]
48
50
commands = {toxinidir}/tools/functional_tests.sh -a 4
You can’t perform that action at this time.
0 commit comments