Add pytest-xdist and print test durations at the end
Parallelizing the tests takes the run time from ~30s to ~15 locally.
Further, printing the test durations should help us identify the tests
to target to improve the test time. While the test runs aren't terribly
slow, they could definitely stand to improve.
@@ -9,6 +9,7 @@ deps =
requests{env:REQUESTS_VERSION:>=2.0}
mock
pytest>=2.3.5
+ pytest-xdist
betamax>=0.5.1
betamax_matchers>=0.3.0
pypy,py27: unittest2
@@ -76,9 +77,8 @@ commands =
python setup.py check -r -s
[pytest]
-addopts = -q
+addopts = -q --durations=10 -nauto
norecursedirs = *.egg .git .* _*
-
[doc8]
ignore-path-errors = docs/source/release-notes/1.0.0.rst;D001
