Add unit test coverage report for C++

This commit is contained in:
Lovell Fuller
2017-11-30 20:16:30 +00:00
parent ef06d560cd
commit 50848ee462
3 changed files with 10 additions and 3 deletions

6
test/coverage/report.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
CPPFLAGS="--coverage" LDFLAGS="--coverage" npm rebuild
npm test
geninfo --no-external --base-directory src --output-file coverage/sharp.info build/Release/obj.target/sharp/src
genhtml --title sharp --demangle-cpp --output-directory coverage/sharp coverage/*.info