generate HTML coverage reports for unit tests

This commit is contained in:
Josh Holtrop 2016-12-18 16:09:06 -05:00
parent 82036458e6
commit 71920ddbcb
2 changed files with 3 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/.waf* /.waf*
/build/ /build/
/test/tmp/ /test/tmp/
/coverage/

View File

@ -9,3 +9,5 @@ clean:
test: test:
./waf build --targets tests ./waf build --targets tests
./build/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.*')