summaryrefslogtreecommitdiffstats
path: root/tox.ini
blob: 622788c9e7de1aa1afbb20b2fb47e021fc52f142 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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
basepython = python2
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