mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
tox: split test/cover per pkg
This commit is contained in:
@@ -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': [
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user