Skip to content

Commit

Permalink
run tests with -p to get complete coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
meejah committed Sep 16, 2015
1 parent e09df6d commit 7cbcbcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Makefile
Expand Up @@ -40,7 +40,7 @@ test_styleguide:

# direct test via pytest (only here because of setuptools test integration)
test_pytest:
python -m pytest -rsx .
python -m pytest -rsx autobahn/

# test via setuptools command
test_setuptools:
Expand All @@ -62,13 +62,14 @@ test_twisted_coverage:

test_coverage:
-rm .coverage
tox -e py27twisted,py27asyncio,py34asyncio
tox -e py27-twcurrent,py27-trollius,py34-asyncio
coverage combine
coverage html
coverage report --show-missing

# test under asyncio
test_asyncio:
USE_ASYNCIO=1 python -m pytest -rsx
USE_ASYNCIO=1 python -m pytest -rsx autobahn
#WAMP_ROUTER_URL="ws://127.0.0.1:8080/ws" USE_ASYNCIO=1 python -m pytest -rsx

test1:
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Expand Up @@ -34,8 +34,8 @@ commands =
sh -c "which python"
python -V
coverage --version
asyncio,trollius: coverage run {envbindir}/py.test autobahn/
twtrunk,twcurrent,tw121,tw132,twcurrent: coverage run {envbindir}/trial autobahn
asyncio,trollius: coverage run --parallel-mode {envbindir}/py.test autobahn/
twtrunk,twcurrent,tw121,tw132,twcurrent: coverage run --parallel-mode {envbindir}/trial autobahn
coverage report
whitelist_externals = sh
setenv =
Expand Down

0 comments on commit 7cbcbcd

Please sign in to comment.