2012-06-05 02:05:59 +02:00
|
|
|
# Tox (http://tox.testrun.org/) is a tool for running tests
|
2016-01-02 18:07:00 +01:00
|
|
|
# in multiple virtualenvs. See ./CONTRIBUTING.rst
|
2014-04-24 21:36:03 +02:00
|
|
|
|
2012-06-05 02:05:59 +02:00
|
|
|
|
|
|
|
[tox]
|
2018-07-12 21:16:16 +02:00
|
|
|
# pypy3 currently fails because of a Flask issue
|
|
|
|
envlist = py27, py37, pypy
|
2014-04-24 21:36:03 +02:00
|
|
|
|
2012-06-05 02:05:59 +02:00
|
|
|
|
|
|
|
[testenv]
|
2014-04-26 16:50:31 +02:00
|
|
|
deps =
|
2016-01-02 18:07:00 +01:00
|
|
|
mock
|
2014-04-26 16:50:31 +02:00
|
|
|
pytest
|
2015-02-16 05:33:57 +01:00
|
|
|
pytest-httpbin>=0.0.6
|
2012-06-05 02:05:59 +02:00
|
|
|
|
2016-01-02 18:07:00 +01:00
|
|
|
|
2014-04-24 21:36:03 +02:00
|
|
|
commands =
|
2016-01-02 18:07:00 +01:00
|
|
|
# NOTE: the order of the directories in posargs seems to matter.
|
|
|
|
# When changed, then many ImportMismatchError exceptions occurrs.
|
|
|
|
py.test \
|
|
|
|
--verbose \
|
|
|
|
--doctest-modules \
|
|
|
|
{posargs:./httpie ./tests}
|
2018-09-07 19:08:37 +02:00
|
|
|
|
|
|
|
[testenv:py27-osx-builtin]
|
|
|
|
basepython = /usr/bin/python2.7
|