2016-05-12 21:31:16 +02: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]
|
2018-09-07 14:33:32 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bijoe/{env:BRANCH_NAME:}
|
2020-04-13 11:53:30 +02:00
|
|
|
envlist = py3-dj111,py3-dj22
|
2016-05-12 21:31:16 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
usedevelop = true
|
|
|
|
setenv =
|
2016-07-14 10:21:00 +02:00
|
|
|
DJANGO_SETTINGS_MODULE=bijoe.settings
|
2019-01-14 12:30:08 +01:00
|
|
|
BIJOE_SETTINGS_FILE=tests/settings.py
|
2020-09-01 14:21:00 +02:00
|
|
|
SETUPTOOLS_USE_DISTUTILS=stdlib
|
2017-02-21 22:29:23 +01:00
|
|
|
coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml
|
2016-05-12 21:31:16 +02:00
|
|
|
deps =
|
2017-03-10 18:38:44 +01:00
|
|
|
dj111: django>=1.11,<1.12
|
2020-04-13 11:00:11 +02:00
|
|
|
dj22: django>=2.2,<2.3
|
2016-05-12 21:31:16 +02:00
|
|
|
coverage
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
2020-06-19 16:28:34 +02:00
|
|
|
pytest-django
|
2018-12-08 12:52:14 +01:00
|
|
|
pytest-freezegun
|
2016-07-14 10:21:00 +02:00
|
|
|
WebTest
|
2018-09-07 14:33:32 +02:00
|
|
|
django-webtest<1.9.3
|
2020-03-13 17:18:50 +01:00
|
|
|
mock
|
2018-10-25 16:32:50 +02:00
|
|
|
pyquery
|
2019-11-30 03:52:14 +01:00
|
|
|
tabulate
|
2020-06-19 16:04:45 +02:00
|
|
|
dj22: djangorestframework>=3.7
|
2020-12-26 15:21:15 +01:00
|
|
|
dj111: https://git.entrouvert.org/hobo.git/snapshot/hobo-main.tar.gz
|
2016-05-12 21:31:16 +02:00
|
|
|
commands =
|
2020-12-09 11:54:36 +01:00
|
|
|
py3-dj111: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/}
|
|
|
|
py3-dj22: py.test {posargs: --ignore=tests/test_hobo_deploy.py --ignore=tests/test_hobo_agent.py --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=bijoe tests/}
|
2018-12-06 17:27:25 +01:00
|
|
|
[pytest]
|
|
|
|
filterwarnings =
|
|
|
|
once:.*
|