Generate coverage HTML reports for Jenkins

pull/4281/head
Masood Malekghassemi 9 years ago
parent d00241e65c
commit 070b91c3f2
  1. 1
      src/python/grpcio/.gitignore
  2. 3
      src/python/grpcio/tox.ini
  3. 3
      tools/run_tests/run_python.sh

@ -13,3 +13,4 @@ dist/
nosetests.xml
doc/
_grpcio_metadata.py
htmlcov/

@ -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

@ -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

Loading…
Cancel
Save