提交 986be9a3 编写于 作者: D Daniel Graña

Run testsuite with py.test

上级 f3d15085
...@@ -5,6 +5,7 @@ env: ...@@ -5,6 +5,7 @@ env:
- TOXENV=precise - TOXENV=precise
- TOXENV=trunk - TOXENV=trunk
- TOXENV=pypy - TOXENV=pypy
- TOXENV=py33
matrix: matrix:
allow_failures: allow_failures:
- env: TOXENV=pypy - env: TOXENV=pypy
......
# Tests requirements # Tests requirements
mock mock
mitmproxy >= 0.10 mitmproxy >= 0.10
pytest-twisted
...@@ -5,6 +5,8 @@ ...@@ -5,6 +5,8 @@
[tox] [tox]
envlist = py27, pypy, precise, trunk, py33 envlist = py27, pypy, precise, trunk, py33
indexserver =
HPK = https://devpi.net/hpk/dev/
[testenv] [testenv]
deps = deps =
...@@ -15,7 +17,7 @@ deps = ...@@ -15,7 +17,7 @@ deps =
django django
-rtests-requirements.txt -rtests-requirements.txt
commands = commands =
trial {posargs:scrapy} py.test --twisted {posargs:scrapy}
[testenv:precise] [testenv:precise]
basepython = python2.7 basepython = python2.7
...@@ -34,7 +36,7 @@ basepython = python2.7 ...@@ -34,7 +36,7 @@ basepython = python2.7
commands = commands =
pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib pip install https://github.com/scrapy/w3lib/archive/master.zip#egg=w3lib
pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib pip install https://github.com/scrapy/queuelib/archive/master.zip#egg=queuelib
trial {posargs:scrapy} py.test --twisted {posargs:scrapy}
[testenv:py33] [testenv:py33]
basepython = python3.3 basepython = python3.3
...@@ -45,8 +47,10 @@ deps = ...@@ -45,8 +47,10 @@ deps =
cssselect>=0.9 cssselect>=0.9
queuelib>=1.1.1 queuelib>=1.1.1
w3lib>=1.5 w3lib>=1.5
commands = # tests requirements
trial {posargs:scrapy} mock
:HPK:pytest>2.5.2
pytest-twisted
[testenv:windows] [testenv:windows]
commands = commands =
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册