From 71920ddbcba1d25de92753afa4d05e620548b22b Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 18 Dec 2016 16:09:06 -0500 Subject: [PATCH] generate HTML coverage reports for unit tests --- .gitignore | 1 + Makefile | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 6828ef4..4ec61d1 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /.waf* /build/ /test/tmp/ +/coverage/ diff --git a/Makefile b/Makefile index 254f3c5..ed83a3f 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,5 @@ clean: test: ./waf build --targets tests ./build/tests + mkdir -p coverage + -(cd build; gcovr --object-directory=src/core --root=.. -o ../coverage/index.html --html --html-details --gcov-filter='.*src#core.*')