tox: split test/cover per pkg

This commit is contained in:
Jakub Warmuz
2015-05-10 12:52:40 +00:00
parent 41e86df252
commit b103aae808
2 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -107,7 +107,9 @@ setup(
},
tests_require=install_requires,
test_suite='letsencrypt', # TODO: test acme (this is run by tox.ini)
# to test all packages run "python setup.py test -s
# {acme,letsencrypt_apache,letsencrypt_nginx}"
test_suite='letsencrypt',
entry_points={
'console_scripts': [
+9 -3
View File
@@ -8,8 +8,11 @@ envlist = py26,py27,cover,lint
[testenv]
commands =
pip install -r requirements.txt -e .[testing]
python setup.py test -q # -q does not suppress errors
# TODO: test_suite is set to letsencrypt only
# -q does not suppress errors
python setup.py test -q
python setup.py test -q -s acme
python setup.py test -q -s letsencrypt_apache
python setup.py test -q -s letsencrypt_nginx
setenv =
PYTHONPATH = {toxinidir}
@@ -20,7 +23,10 @@ setenv =
basepython = python2.7
commands =
pip install -e .[testing]
python setup.py nosetests --with-coverage --cover-min-percentage=89
nosetests --with-coverage --cover-min-percentage=68 letsencrypt
nosetests --with-coverage --cover-min-percentage=100 acme
nosetests --with-coverage --cover-min-percentage=57 letsencrypt_apache
nosetests --with-coverage --cover-min-percentage=58 letsencrypt_nginx
[testenv:lint]
# recent versions of pylint do not support Python 2.6 (#97, #187)