2015-07-16 14:28:39 +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.
|
|
|
|
|
2018-03-26 09:56:16 +02:00
|
|
|
[tox]
|
|
|
|
envlist = py2,py3
|
2018-10-03 09:28:32 +02:00
|
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/eopayment/{env:BRANCH_NAME:}
|
2018-03-26 09:56:16 +02:00
|
|
|
|
2015-07-16 14:28:39 +02:00
|
|
|
[testenv]
|
|
|
|
# django.contrib.auth is not tested it does not work with our templates
|
2018-10-03 09:28:32 +02:00
|
|
|
basepython = python2
|
2015-07-16 14:28:39 +02:00
|
|
|
commands =
|
2018-10-03 09:28:32 +02:00
|
|
|
py2: py.test {posargs: --junitxml=test_{envname}_results.xml --cov-report xml --cov-report html --cov=eopayment/ tests}
|
|
|
|
py3: py.test {posargs: --junitxml=test_{envname}_results.xml tests}
|
2015-07-16 14:28:39 +02:00
|
|
|
usedevelop = True
|
|
|
|
deps = coverage
|
2016-02-01 17:59:01 +01:00
|
|
|
pytest
|
2018-10-03 09:28:32 +02:00
|
|
|
py2: pytest-cov
|