From 070b91c3f25cd57bb0732998cd5bfa55dc120782 Mon Sep 17 00:00:00 2001 From: Masood Malekghassemi Date: Thu, 3 Dec 2015 17:54:21 -0800 Subject: [PATCH] Generate coverage HTML reports for Jenkins --- src/python/grpcio/.gitignore | 1 + src/python/grpcio/tox.ini | 3 ++- tools/run_tests/run_python.sh | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/python/grpcio/.gitignore b/src/python/grpcio/.gitignore index 6f3d8673e7a..95b96f7c1e9 100644 --- a/src/python/grpcio/.gitignore +++ b/src/python/grpcio/.gitignore @@ -13,3 +13,4 @@ dist/ nosetests.xml doc/ _grpcio_metadata.py +htmlcov/ diff --git a/src/python/grpcio/tox.ini b/src/python/grpcio/tox.ini index 9acc4d65d81..0e3cae7861b 100644 --- a/src/python/grpcio/tox.ini +++ b/src/python/grpcio/tox.ini @@ -12,7 +12,8 @@ commands = {envpython} setup.py build_py {envpython} setup.py test coverage combine - coverage report --include='grpc/*' --omit='grpc/framework/alpha/*','grpc/early_adopter/*','grpc/framework/base/*','grpc/framework/face/*' + coverage html --include='grpc/*' --omit='grpc/framework/alpha/*','grpc/early_adopter/*','grpc/framework/base/*','grpc/framework/face/*','grpc/_adapter/fore.py','grpc/_adapter/rear.py' + coverage report --include='grpc/*' --omit='grpc/framework/alpha/*','grpc/early_adopter/*','grpc/framework/base/*','grpc/framework/face/*','grpc/_adapter/fore.py','grpc/_adapter/rear.py' deps = cython coverage diff --git a/tools/run_tests/run_python.sh b/tools/run_tests/run_python.sh index cc44a433bb1..042b40485df 100755 --- a/tools/run_tests/run_python.sh +++ b/tools/run_tests/run_python.sh @@ -46,3 +46,6 @@ export GRPC_PYTHON_ENABLE_CYTHON_TRACING=1 cd $GRPCIO tox +mkdir -p $ROOT/reports +rm -rf $ROOT/reports/python-coverage +(mv -T $GRPCIO/htmlcov $ROOT/reports/python-coverage) || true