Extract common nosetest params into setup.cfg
Arguments in setup.cfg will always be loaded as the default parameters when running nosetest
This commit is contained in:
committed by
Cyril Roelandt
parent
c2b6d659fc
commit
a4b181e938
4
Makefile
4
Makefile
@@ -15,11 +15,11 @@ test: unit functional doctests
|
|||||||
|
|
||||||
unit: prepare
|
unit: prepare
|
||||||
@echo "Running unit tests ..."
|
@echo "Running unit tests ..."
|
||||||
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/unit --cover-package=httpretty
|
@nosetests -s tests/unit
|
||||||
|
|
||||||
functional: prepare
|
functional: prepare
|
||||||
@echo "Running functional tests ..."
|
@echo "Running functional tests ..."
|
||||||
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/functional --cover-package=httpretty
|
@nosetests -s tests/functional
|
||||||
|
|
||||||
doctests: prepare
|
doctests: prepare
|
||||||
@echo "Running documentation tests tests ..."
|
@echo "Running documentation tests tests ..."
|
||||||
|
|||||||
6
setup.cfg
Normal file
6
setup.cfg
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
[nosetests]
|
||||||
|
verbosity=2
|
||||||
|
with-coverage=1
|
||||||
|
cover-erase=1
|
||||||
|
cover-package=httpretty
|
||||||
|
cover-inclusive=1
|
||||||
4
tox.ini
4
tox.ini
@@ -3,10 +3,10 @@ envlist = py26, py27
|
|||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
commands = nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/unit --cover-package=httpretty
|
commands = nosetests -s tests/unit
|
||||||
|
|
||||||
[testenv:functional]
|
[testenv:functional]
|
||||||
commands = nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/functional --cover-package=httpretty
|
commands = nosetests -s tests/functional
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
|
|||||||
Reference in New Issue
Block a user