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:
Jamie Lennox 2014-01-14 12:09:06 +10:00 committed by Cyril Roelandt
parent c2b6d659fc
commit a4b181e938
3 changed files with 10 additions and 4 deletions

View File

@ -15,11 +15,11 @@ test: unit functional doctests
unit: prepare
@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
@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
@echo "Running documentation tests tests ..."

6
setup.cfg Normal file
View File

@ -0,0 +1,6 @@
[nosetests]
verbosity=2
with-coverage=1
cover-erase=1
cover-package=httpretty
cover-inclusive=1

View File

@ -3,10 +3,10 @@ envlist = py26, py27
[testenv]
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]
commands = nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/functional --cover-package=httpretty
commands = nosetests -s tests/functional
[testenv:pep8]
deps = flake8