Files
prplMesh/coverage.sh
Mario Maz 073f7e0a84 docker: add scripts to create coverage reports
Add scripts to create coverage reports both natively and using docker
image.

Signed-off-by: Mario Maz <mmazzapater@gmail.com>
2020-05-27 17:06:52 +00:00

17 lines
477 B
Bash
Executable File

#!/bin/sh
# cd to the script directory:
cd "${0%/*}" || { echo "Couldn't cd to ${0%/*}!"; exit 1; }
export REPORTS_DIR=./build/reports
export COVERAGE_DIR=${REPORTS_DIR}/coverage
rm -rf ${COVERAGE_DIR}
mkdir -p ${COVERAGE_DIR}
# See "Gcovr User Guide" for details on 'gcovr' usage
# https://gcovr.com/en/stable/guide.html
gcovr -r . --exclude='build/*' --exclude='framework/external/*' --exclude='.*/unit_tests/.*' --html --html-details -o ${COVERAGE_DIR}/coverage.html