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]
|
2016-06-20 16:39:33 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/bijoe/
|
2018-01-03 15:45:46 +01:00
|
|
|
envlist = dj18,dj111
|
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
|
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 11:37:35 +01:00
|
|
|
dj18: django>=1.8,<1.9
|
2017-03-10 19:23:08 +01:00
|
|
|
dj19: django>=1.9,<1.10
|
2017-03-10 11:37:35 +01:00
|
|
|
dj110: django>=1.10,<1.11
|
2017-03-10 18:38:44 +01:00
|
|
|
dj111: django>=1.11,<1.12
|
|
|
|
dj18,dj19,dj110: Django-Select2>=5
|
2016-05-12 21:31:16 +02:00
|
|
|
coverage
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
pytest-random
|
2018-05-04 18:01:45 +02:00
|
|
|
pytest-django
|
2016-07-14 10:21:00 +02:00
|
|
|
WebTest
|
2018-05-04 18:01:45 +02:00
|
|
|
dj18,dj19,dj110: django-webtest<1.9.3
|
2016-05-12 21:31:16 +02:00
|
|
|
commands =
|
2016-07-14 10:21:00 +02:00
|
|
|
py.test {env:COVERAGE:} {posargs:--nomigrations --random tests}
|