ldaptools/tox.ini

34 lines
787 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}/ldaptools/
envlist = py3
[testenv]
usedevelop = true
setenv =
COVERAGE={tty::--cov --cov-append --cov-report xml --cov-report html --cov-context=test --cov-config=tox.ini}
JUNIT={tty::-o junit_suite_name={envname} --junit-xml=junit-{envname}.xml}
deps =
pytest
pytest-cov
pytest-random
commands =
py.test {env:JUNIT:} {env:COVERAGE:} {posargs:--random tests}
[pytest]
junit_family=xunit2
[coverage:run]
source =
src
tests
branch = True
[coverage:html]
show_contexts = True