run tests with -p to get complete coverage
This commit is contained in:
parent
e09df6d80a
commit
7cbcbcd3d3
7
Makefile
7
Makefile
|
@ -40,7 +40,7 @@ test_styleguide:
|
||||||
|
|
||||||
# direct test via pytest (only here because of setuptools test integration)
|
# direct test via pytest (only here because of setuptools test integration)
|
||||||
test_pytest:
|
test_pytest:
|
||||||
python -m pytest -rsx .
|
python -m pytest -rsx autobahn/
|
||||||
|
|
||||||
# test via setuptools command
|
# test via setuptools command
|
||||||
test_setuptools:
|
test_setuptools:
|
||||||
|
@ -62,13 +62,14 @@ test_twisted_coverage:
|
||||||
|
|
||||||
test_coverage:
|
test_coverage:
|
||||||
-rm .coverage
|
-rm .coverage
|
||||||
tox -e py27twisted,py27asyncio,py34asyncio
|
tox -e py27-twcurrent,py27-trollius,py34-asyncio
|
||||||
|
coverage combine
|
||||||
coverage html
|
coverage html
|
||||||
coverage report --show-missing
|
coverage report --show-missing
|
||||||
|
|
||||||
# test under asyncio
|
# test under asyncio
|
||||||
test_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
|
#WAMP_ROUTER_URL="ws://127.0.0.1:8080/ws" USE_ASYNCIO=1 python -m pytest -rsx
|
||||||
|
|
||||||
test1:
|
test1:
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -34,8 +34,8 @@ commands =
|
||||||
sh -c "which python"
|
sh -c "which python"
|
||||||
python -V
|
python -V
|
||||||
coverage --version
|
coverage --version
|
||||||
asyncio,trollius: coverage run {envbindir}/py.test autobahn/
|
asyncio,trollius: coverage run --parallel-mode {envbindir}/py.test autobahn/
|
||||||
twtrunk,twcurrent,tw121,tw132,twcurrent: coverage run {envbindir}/trial autobahn
|
twtrunk,twcurrent,tw121,tw132,twcurrent: coverage run --parallel-mode {envbindir}/trial autobahn
|
||||||
coverage report
|
coverage report
|
||||||
whitelist_externals = sh
|
whitelist_externals = sh
|
||||||
setenv =
|
setenv =
|
||||||
|
|
Loading…
Reference in New Issue