zoo/tox.ini

44 lines
995 B
INI
Raw Normal View History

2017-01-02 17:48:23 +01:00
# 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/
2019-03-28 17:06:35 +01:00
envlist = py27
2017-01-02 17:48:23 +01:00
[testenv]
2019-02-28 08:42:44 +01:00
basepython = python2
2017-01-02 17:48:23 +01:00
# 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/
2017-01-02 17:48:23 +01:00
fast: FAST=--nomigrations
flakes: FLAKES=--flakes
2017-01-02 17:48:23 +01:00
usedevelop =
coverage: True
nocoverage: False
deps =
2017-04-26 14:02:11 +02:00
pip>8
2017-02-28 23:36:38 +01:00
pytest-flakes
2017-01-02 17:48:23 +01:00
pg: psycopg2
coverage
pytest-cov
pytest-django
mock
pytest>=3.3.0
2017-01-02 17:48:23 +01:00
lxml
cssselect
pylint
pylint-django
django-webtest
WebTest
pyquery
httmock
pytz
faker
commands =
py.test {env:FAST:} {env:COVERAGE:} {env:FLAKES:} {posargs:tests}