Skip to content

Commit 14a7292

Browse files
committed
Replace nose with unittest in tox configuration
And directly use coverage.py
1 parent 72a2f7d commit 14a7292

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
envlist = py34,py35,py36,py37,py38,flake8
33

44
[testenv]
5-
commands = nosetests {posargs}
5+
commands = python -m unittest --buffer {posargs}
66
deps = -r{toxinidir}/requirements.txt
77
-r{toxinidir}/test-requirements.txt
88
passenv = HOME
99

1010
[testenv:cover]
11-
commands = nosetests --with-coverage {posargs}
11+
commands = coverage run --omit="git/test/*" -m unittest --buffer {posargs}
12+
coverage report
1213

1314
[testenv:flake8]
1415
commands = flake8 --ignore=W293,E265,E266,W503,W504,E731 {posargs}

0 commit comments

Comments
 (0)