Skip to content
Snippets Groups Projects
Commit 1014a4ef authored by murgatroid99's avatar murgatroid99
Browse files

Flatten Node coverage reports by one level to avoid issues with redirects

parent a5dc80d2
No related branches found
No related tags found
No related merge requests found
Subproject commit 907ae62b9d81121cb86b604f83e6b811a43f7a87 Subproject commit 9f897b25800d2f54f5c442ef01a60721aeca6d87
...@@ -48,6 +48,7 @@ if [ "$CONFIG" = "gcov" ] ...@@ -48,6 +48,7 @@ if [ "$CONFIG" = "gcov" ]
then then
./node_modules/.bin/istanbul cover --dir reports/node_coverage \ ./node_modules/.bin/istanbul cover --dir reports/node_coverage \
-x **/interop/* ./node_modules/.bin/_mocha -- --timeout $timeout $test_directory -x **/interop/* ./node_modules/.bin/_mocha -- --timeout $timeout $test_directory
cp -r reports/node_coverage/lcov-report/* reports/node_coverage/
cd build cd build
gcov Release/obj.target/grpc/ext/*.o gcov Release/obj.target/grpc/ext/*.o
lcov --base-directory . --directory . -c -o coverage.info lcov --base-directory . --directory . -c -o coverage.info
...@@ -55,8 +56,6 @@ then ...@@ -55,8 +56,6 @@ then
genhtml -o ../reports/node_ext_coverage --num-spaces 2 \ genhtml -o ../reports/node_ext_coverage --num-spaces 2 \
-t 'Node gRPC test coverage' coverage.info --rc genhtml_hi_limit=95 \ -t 'Node gRPC test coverage' coverage.info --rc genhtml_hi_limit=95 \
--rc genhtml_med_limit=80 --no-prefix --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 else
JUNIT_REPORT_PATH=src/node/report.xml JUNIT_REPORT_STACK=1 \ JUNIT_REPORT_PATH=src/node/report.xml JUNIT_REPORT_STACK=1 \
./node_modules/.bin/mocha --timeout $timeout \ ./node_modules/.bin/mocha --timeout $timeout \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment