2014-04-20 20:15:19 +00: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]
|
2016-01-22 15:35:59 +00:00
|
|
|
envlist = py26, py27, py33, py34, py35
|
2014-04-20 20:15:19 +00:00
|
|
|
|
|
|
|
|
[testenv]
|
|
|
|
|
changedir = tests
|
|
|
|
|
|
|
|
|
|
commands =
|
|
|
|
|
coverage run --source tuf aggregate_tests.py
|
2016-01-27 22:36:58 +00:00
|
|
|
coverage report -m --fail-under 90
|
2015-04-28 00:25:52 +00:00
|
|
|
coverage html
|
2014-04-20 20:15:19 +00:00
|
|
|
|
|
|
|
|
deps =
|
2015-06-01 21:32:07 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
|
|
|
|
|
|
|
|
|
install_command = pip install --pre {opts} {packages}
|
2014-06-06 22:57:23 +00:00
|
|
|
|
2014-06-10 12:28:29 +00:00
|
|
|
|
2014-06-06 22:57:23 +00:00
|
|
|
[testenv:py26]
|
|
|
|
|
deps =
|
2015-06-01 21:32:07 +00:00
|
|
|
-r{toxinidir}/requirements.txt
|
2014-06-06 22:57:23 +00:00
|
|
|
unittest2
|
2015-06-01 21:32:07 +00:00
|
|
|
|
|
|
|
|
install_command = pip install --pre {opts} {packages}
|