2012-06-05 03:05:59 +03:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
2014-04-24 22:36:03 +03:00
|
|
|
# in multiple virtualenvs.
|
|
|
|
# Run:
|
|
|
|
# $ pip install -r requirements-dev.txt
|
|
|
|
# $ tox
|
|
|
|
|
2012-06-05 03:05:59 +03:00
|
|
|
|
|
|
|
[tox]
|
2014-04-24 18:08:40 +03:00
|
|
|
envlist = py26, py27, py34, pypy
|
2014-04-24 22:36:03 +03:00
|
|
|
usedevelop = True
|
|
|
|
skipsdist = True
|
|
|
|
|
2012-06-05 03:05:59 +03:00
|
|
|
|
|
|
|
[testenv]
|
2014-04-25 11:41:04 +03:00
|
|
|
|
2014-04-24 22:36:03 +03:00
|
|
|
whitelist_externals =
|
|
|
|
py.test
|
2012-06-05 03:05:59 +03:00
|
|
|
|
2014-04-24 22:36:03 +03:00
|
|
|
commands =
|
|
|
|
py.test --doctest-modules \
|
|
|
|
--basetemp={envtmpdir} \
|
|
|
|
-n 8 \
|
|
|
|
{posargs:./tests ./httpie}
|
2014-04-24 19:20:23 +03:00
|
|
|
|
2014-04-24 22:36:03 +03:00
|
|
|
[testenv:py26]
|
|
|
|
deps =
|
|
|
|
argparse
|