eopayment/tox.ini

32 lines
929 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
usedevelop = True
setenv =
SETUPTOOLS_USE_DISTUTILS=stdlib
commands =
py2: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eopayment/ tests}
py3: py.test {posargs: --junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=eopayment/ tests}
deps = coverage
pytest
pytest-freezegun
pytest-cov
mock
httmock
lxml
[pytest]
filterwarnings =
ignore:defusedxml.lxml is no longer supported.*
markers =
update_data
junit_family=xunit2