diff --git a/.gitignore b/.gitignore index d387c7c..b03b35a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ *.egg-info *.pyc .tox/ +.coverage +coverage.xml +nosetests.xml diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..5bea783 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,8 @@ +[nosetests] +nocapture=1 +cover-package=zope.filerepresentation +cover-erase=1 +cover-min-percentage=100 +with-doctest=0 +where=src + diff --git a/tox.ini b/tox.ini index c61b754..674c4ab 100644 --- a/tox.ini +++ b/tox.ini @@ -1,25 +1,20 @@ [tox] envlist = - py26,py27,py33,py34,pypy,pypy3 + py26,py27,py33,py34,pypy,pypy3,coverage [testenv] commands = - python setup.py test -q + python setup.py -q test -q # without explicit deps, setup.py test will download a bunch of eggs into $PWD deps = zope.interface zope.schema - zope.testing [testenv:coverage] +usedevelop = true basepython = python2.7 commands = -# The installed version messes up nose's test discovery / coverage reporting -# So, we uninstall that from the environment, and then install the editable -# version, before running nosetests. - pip uninstall -y zope.filerepresentation - pip install -e . nosetests --with-xunit --with-xcoverage deps = nose