8000 Add pytest-xdist and print test durations at the end · jayhawk87/github3.py@1bbe509 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1bbe509

Browse files
committed
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.
1 parent 36a083c commit 1bbe509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ deps =
99
requests{env:REQUESTS_VERSION:>=2.0}
1010
mock
1111
pytest>=2.3.5
12+
pytest-xdist
1213
betamax>=0.5.1
1314
betamax_matchers>=0.3.0
1415
pypy,py27: unittest2
@@ -76,9 +77,8 @@ commands =
7677
python setup.py check -r -s
7778

7879
[pytest]
79-
addopts = -q
80+
addopts = -q --durations=10 -nauto
8081
norecursedirs = *.egg .git .* _*
8182

82-
8383
[doc8]
8484
ignore-path-errors = docs/source/release-notes/1.0.0.rst;D001

0 commit comments

Comments
 (0)
0