45 lines
1014 B
INI
45 lines
1014 B
INI
# 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]
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/zoo/
|
|
envlist = py27
|
|
|
|
[testenv]
|
|
basepython = python2
|
|
# django.contrib.auth is not tested it does not work with our templates
|
|
whitelist_externals =
|
|
/bin/mv
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=zoo.settings
|
|
coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=zoo/
|
|
fast: FAST=--nomigrations
|
|
flakes: FLAKES=--flakes
|
|
usedevelop =
|
|
coverage: True
|
|
nocoverage: False
|
|
deps =
|
|
pip>8
|
|
pytest-flakes
|
|
pg: psycopg2
|
|
coverage
|
|
pytest-cov
|
|
pytest-django
|
|
mock
|
|
pytest>=3.3.0
|
|
lxml
|
|
cssselect
|
|
pylint
|
|
pylint-django
|
|
django-webtest
|
|
WebTest
|
|
pyquery
|
|
httmock
|
|
pytz
|
|
faker
|
|
pytest-freezegun
|
|
commands =
|
|
py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}
|