30 lines
809 B
INI
30 lines
809 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/
|
|
envlist = dj18,dj111
|
|
|
|
[testenv]
|
|
usedevelop = true
|
|
setenv =
|
|
DJANGO_SETTINGS_MODULE=bijoe.settings
|
|
coverage: COVERAGE=--junit-xml=test_results.xml --cov=bijoe --cov-report xml
|
|
deps =
|
|
dj18: django>=1.8,<1.9
|
|
dj19: django>=1.9,<1.10
|
|
dj110: django>=1.10,<1.11
|
|
dj111: django>=1.11,<1.12
|
|
dj18,dj19,dj110: Django-Select2>=5
|
|
coverage
|
|
pytest
|
|
pytest-cov
|
|
pytest-random
|
|
pytest-django
|
|
WebTest
|
|
dj18,dj19,dj110: django-webtest<1.9.3
|
|
commands =
|
|
py.test {env:COVERAGE:} {posargs:--nomigrations --random tests}
|