From b103aae808ffcbad858faa2093d38912b2dea732 Mon Sep 17 00:00:00 2001 From: Jakub Warmuz Date: Sun, 10 May 2015 12:52:40 +0000 Subject: [PATCH] tox: split test/cover per pkg --- setup.py | 4 +++- tox.ini | 12 +++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 8478ab132..c719bea60 100644 --- a/setup.py +++ b/setup.py @@ -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': [ diff --git a/tox.ini b/tox.ini index add0a15e7..11aadf69b 100644 --- a/tox.ini +++ b/tox.ini @@ -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)