requests-mock/tox.ini
Jamie Lennox 6227295409 Enable coverage testing
For whatever reason I couldn't make this work with testr, so at least
for now the tests will have to go through the testtools runner.
2014-06-15 11:12:21 +10:00

26 lines
495 B
INI

[tox]
envlist = py26, py27, py33, pypy, pep8
[testenv]
setenv =
PYTHONPATH = {toxinidir}:{toxinidir}/requests-mock
commands = python setup.py testr
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:pep8]
commands = flake8 requests_mock
deps =
flake8
{[testenv]deps}
[testenv:coverage]
commands =
coverage erase
coverage run --source requests_mock -m testtools.run discover
coverage html
deps =
coverage
{[testenv]deps}