21 lines
715 B
INI
21 lines
715 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]
|
|
envlist = py2,py3
|
|
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/eopayment/{env:BRANCH_NAME:}
|
|
|
|
[testenv]
|
|
# django.contrib.auth is not tested it does not work with our templates
|
|
commands =
|
|
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}
|
|
usedevelop = True
|
|
deps = coverage
|
|
pytest
|
|
pytest-freezegun
|
|
py2: pytest-cov
|
|
mock
|