Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 27c7c18

Browse files
committed
Run tests synchronously.
1 parent ceeb27f commit 27c7c18

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

.coveragerc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
[run]
2+
source = hyper
23
omit =
34
hyper/compat.py
45
hyper/httplib_compat.py
56
hyper/ssl_compat.py
67
hyper/packages/*
8+
9+
[report]
10+
fail_under = 100
11+
show_missing = True
12+
13+
[paths]
14+
source =
15+
hyper/
16+
.tox/*/lib/python*/site-packages/hyper
17+
.tox/pypy*/site-packages/hyper

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ script:
3131
if [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
3232
py.test test/
3333
else
34-
py.test -n 1 --cov hyper test/
35-
coverage report -m --fail-under 100
34+
coverage run -m py.test test/
35+
coverage combine
36+
coverage report
3637
fi
3738
fi

tox.ini

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ envlist = py27, py33, py34, pypy
33

44
[testenv]
55
deps= -r{toxinidir}/test_requirements.txt
6-
commands= py.test -n 4 --cov hyper {toxinidir}/test/
6+
commands=
7+
coverage run -m py.test {toxinidir}/test/
8+
coverage combine
9+
coverage report
710

811
[testenv:pypy]
912
# temporarily disable coverage testing on PyPy due to performance problems
10-
commands= py.test -n 4 hyper {toxinidir}/test/
13+
commands= py.test {toxinidir}/test/

0 commit comments

Comments
 (0)