Use tox for testing.

This commit is contained in:
Tobias Gruetzmacher 2016-03-20 19:43:48 +01:00
parent 3c4b3fdfc3
commit 1ff4902344
3 changed files with 18 additions and 5 deletions

View file

@ -12,10 +12,9 @@ addons:
- libjpeg-dev - libjpeg-dev
# command to install dependencies # command to install dependencies
install: install:
- pip install -r requirements.txt - pip install pytest-travis-fold tox-travis coveralls
- pip install pytest-xdist pytest-cov pytest-travis-fold coveralls
# command to run tests # command to run tests
script: make test PYTESTOPTS="--cov=dosage --cov=dosagelib --tb=short -n10" script: tox
after_success: after_success:
coveralls coveralls
notifications: notifications:

View file

@ -37,8 +37,6 @@ dimensions =
Pillow Pillow
bash = bash =
argcomplete argcomplete
test =
pytest-xdist
[bdist_wheel] [bdist_wheel]
universal=1 universal=1

16
tox.ini Normal file
View file

@ -0,0 +1,16 @@
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27, py35
[testenv]
commands = py.test --cov=dosage --cov=dosagelib --tb=short -n10
# Also install optional dependencies for tests.
deps =
pytest-xdist
pytest-cov
cssselect
Pillow