File tree 5 files changed +11
-11
lines changed
5 files changed +11
-11
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 /
8
9
docs /_build
10
+ .coverage
9
11
.testrepository /
10
12
.tox
11
13
venv /
Load Diff This file was deleted.
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 @@ -12,7 +12,7 @@ install_command = pip install {opts} {packages}
12
12
deps = -r{toxinidir}/requirements.txt
13
13
-r{toxinidir}/test-requirements.txt
14
14
commands =
15
- python setup.py testr -- testr-args = ' {posargs}'
15
+ pytest {posargs} gitlab/tests
16
16
17
17
[testenv:pep8]
18
18
commands =
@@ -39,9 +39,11 @@ commands = python setup.py build_sphinx
39
39
40
40
[testenv:cover]
41
41
commands =
42
- python setup.py testr --slowest --coverage --testr-args =" {posargs}"
43
- coverage report --omit =*tests*
44
- coverage html --omit =*tests*
42
+ pytest --cov gitlab --cov-report term --cov-report html \
43
+ {posargs} gitlab/tests
44
+
45
+ [coverage:run]
46
+ omit = *tests*
45
47
46
48
[testenv:cli_func_v4]
47
49
commands = {toxinidir}/tools/functional_tests.sh -a 4 -p 2
You can’t perform that action at this time.
0 commit comments