zoo/tox.ini

50 lines
1.0 KiB
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/{env:BRANCH_NAME:}
2023-01-11 11:30:00 +01:00
envlist =
py3-dj32
2017-01-02 17:48:23 +01:00
[testenv]
passenv=
PG*
2017-01-02 17:48:23 +01:00
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
SETUPTOOLS_USE_DISTUTILS=stdlib
2023-01-11 12:20:07 +01:00
JUNIT={tty::--junitxml=junit-{envname}.xml}
COVERAGE={tty::--cov-report xml --cov-report html --cov=zoo/}
usedevelop = true
2022-08-05 22:36:13 +02:00
deps =
2023-01-11 11:30:00 +01:00
dj32: django>=3.2,<3.3
2023-03-23 11:19:03 +01:00
psycopg2-binary
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
coverage
pytest-cov
pytest-django
mock<4
pytest>=3.3.0
2017-01-02 17:48:23 +01:00
lxml
cssselect
pylint
pylint-django
django-webtest
WebTest
pyquery
httmock
pytz
faker
pytest-freezegun
2017-01-02 17:48:23 +01:00
commands =
2023-01-11 12:20:07 +01:00
py.test {posargs:{env:JUNIT:} {env:COVERAGE:} {env:FLAKES:} tests/}
2023-01-11 12:00:42 +01:00
[pytest]
filterwarnings =
error
ignore:_SixMetaPathImporter:ImportWarning
ignore:Plural value:DeprecationWarning
junit_family=xunit2