aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-10-16 14:08:51 -0700
committerGravatar Nicolas Noble <nicolasnoble@users.noreply.github.com>2015-10-16 14:08:51 -0700
commitd24919280fd3b5396a011860ca02dee8031d0b7d (patch)
tree2085769bc9b70d0410bbc02ca4a846de1b64e2e2
parentb839682c0b9e938ccd9d66e6b3f92b6e7cd3ab65 (diff)
parentd6d73ca25cc83e844555d470cb373b9d3cb56549 (diff)
Merge pull request #3849 from murgatroid99/node_restrict_coverage_report
Make Node coverage reporting only report on actual Node source files
-rwxr-xr-xtools/run_tests/run_node.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/run_tests/run_node.sh b/tools/run_tests/run_node.sh
index 85e3a38f84..d0a74e7e1e 100755
--- a/tools/run_tests/run_node.sh
+++ b/tools/run_tests/run_node.sh
@@ -40,13 +40,14 @@ root=`pwd`
if [ "$CONFIG" = "gcov" ]
then
./node_modules/.bin/istanbul cover --dir reports/node_coverage \
- ./node_modules/.bin/_mocha -- --timeout 8000 src/node/test
+ -x **/interop/* ./node_modules/.bin/_mocha -- --timeout 8000 src/node/test
cd build
gcov Release/obj.target/grpc/ext/*.o
lcov --base-directory . --directory . -c -o coverage.info
+ lcov -e coverage.info '**/src/node/ext/*' -o coverage.info
genhtml -o ../reports/node_ext_coverage --num-spaces 2 \
-t 'Node gRPC test coverage' coverage.info --rc genhtml_hi_limit=95 \
- --rc genhtml_med_limit=80
+ --rc genhtml_med_limit=80 --no-prefix
echo '<html><head><meta http-equiv="refresh" content="0;URL=lcov-report/index.html"></head></html>' > \
../reports/node_coverage/index.html
else