36 lines
993 B
INI
36 lines
993 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}/bijoe/{env:BRANCH_NAME:}
|
|
envlist = py3-dj22
|
|
|
|
[testenv]
|
|
usedevelop = true
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=bijoe.settings
|
|
BIJOE_SETTINGS_FILE=tests/settings.py
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml
|
|
deps =
|
|
dj22: django>=2.2,<2.3
|
|
coverage
|
|
pytest
|
|
pytest-cov
|
|
pytest-django
|
|
pytest-freezegun
|
|
WebTest
|
|
django-webtest<1.9.3
|
|
mock
|
|
pyquery
|
|
tabulate
|
|
dj22: djangorestframework>=3.7
|
|
dj22: https://git.entrouvert.org/hobo.git/snapshot/hobo-main.tar.gz
|
|
commands =
|
|
py3-dj22: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/}
|
|
[pytest]
|
|
filterwarnings =
|
|
once:.*
|