ldaptools/tox.ini

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
787 B
INI
Raw Permalink Normal View History

2016-02-02 16:59:12 +01: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.
[tox]
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/ldaptools/
2024-02-03 15:07:29 +01:00
envlist = py3
2016-02-02 16:59:12 +01:00
2016-03-18 14:42:52 +01:00
[testenv]
2016-02-02 16:59:12 +01:00
usedevelop = true
2016-03-18 14:26:10 +01:00
setenv =
2024-02-03 15:07:29 +01:00
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}
2016-03-18 14:26:10 +01:00
deps =
pytest
pytest-cov
pytest-random
2016-02-02 16:59:12 +01:00
commands =
2024-02-03 15:07:29 +01:00
py.test {env:JUNIT:} {env:COVERAGE:} {posargs:--random tests}
2020-04-25 09:30:31 +02:00
[pytest]
junit_family=xunit2
2024-02-03 15:07:29 +01:00
[coverage:run]
source =
src
tests
branch = True
[coverage:html]
show_contexts = True