Skip to content

Commit

Permalink
Cleanup tox test runs:
Browse files Browse the repository at this point in the history
- Silence setuptools chatter during test runs.

- Switch to 'usedevelop = true' FBO nose / coverage.

- Drop spurious 'zope.testing' under tox.
  • Loading branch information
tseaver committed Feb 28, 2015
1 parent 1938d2f commit 9869754
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*.egg-info
*.pyc
.tox/
.coverage
coverage.xml
nosetests.xml
8 changes: 8 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[nosetests]
nocapture=1
cover-package=zope.filerepresentation
cover-erase=1
cover-min-percentage=100
with-doctest=0
where=src

11 changes: 3 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 9869754

Please sign in to comment.