|
|
|
@ -41,10 +41,13 @@ cd $(dirname $0)/../.. |
|
|
|
|
|
|
|
|
|
root=`pwd` |
|
|
|
|
|
|
|
|
|
test_directory='src/node/test' |
|
|
|
|
timeout=8000 |
|
|
|
|
|
|
|
|
|
if [ "$CONFIG" = "gcov" ] |
|
|
|
|
then |
|
|
|
|
./node_modules/.bin/istanbul cover --dir reports/node_coverage \ |
|
|
|
|
-x **/interop/* ./node_modules/.bin/_mocha -- --timeout 8000 src/node/test |
|
|
|
|
-x **/interop/* ./node_modules/.bin/_mocha -- --timeout $timeout $test_directory |
|
|
|
|
cd build |
|
|
|
|
gcov Release/obj.target/grpc/ext/*.o |
|
|
|
|
lcov --base-directory . --directory . -c -o coverage.info |
|
|
|
@ -55,5 +58,7 @@ then |
|
|
|
|
echo '<html><head><meta http-equiv="refresh" content="0;URL=lcov-report/index.html"></head></html>' > \ |
|
|
|
|
../reports/node_coverage/index.html |
|
|
|
|
else |
|
|
|
|
JUNIT_REPORT_PATH=src/node/reports.xml JUNIT_REPORT_STACK=1 ./node_modules/.bin/mocha --reporter mocha-jenkins-reporter src/node/test |
|
|
|
|
JUNIT_REPORT_PATH=src/node/reports.xml JUNIT_REPORT_STACK=1 \ |
|
|
|
|
./node_modules/.bin/mocha --timeout $timeout \ |
|
|
|
|
--reporter mocha-jenkins-reporter $test_directory |
|
|
|
|
fi |
|
|
|
|