summaryrefslogtreecommitdiff
path: root/tools/coverage.sh
blob: b5f4a1700fe9bc2512c495ff08ff698afeaab84a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -e

PROJ_ROOT=$(git rev-parse --show-toplevel)
cd $PROJ_ROOT

HTML_DIR=build/coverage/html

ctest --test-dir build/test -j8 --output-on-failure
# cd build
mkdir -p ${HTML_DIR}
gcovr --exclude-throw-branches --exclude build/_deps/ --exclude test -r  . --html-details ${HTML_DIR}/gcovr_report.html