Added code for extension coverage
diff --git a/tools/run_tests/run_node.sh b/tools/run_tests/run_node.sh
index bcd93ed..1043b44 100755
--- a/tools/run_tests/run_node.sh
+++ b/tools/run_tests/run_node.sh
@@ -37,6 +37,19 @@
 
 root=`pwd`
 
+cd $root/src/node
+
 export LD_LIBRARY_PATH=$root/libs/$CONFIG
 
-$root/src/node/node_modules/mocha/bin/mocha --timeout 8000 $root/src/node/test
+if [ "$CONFIG" = "gcov" ]
+then
+  ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- \
+    --timeout 8000
+  cd build
+  gcov Release/obj.target/grpc/ext/*.o
+  lcov --base-directory . --directory . -c -o coverage.info
+  genhtml -o ../ext_coverage --num-spaces 2 -t 'Node gRPC test coverage' \
+    coverage.info
+else
+  ./node_modules/mocha/bin/mocha --timeout 8000
+fi