mirror of
https://gitlab.com/prpl-foundation/prplmesh/prplMesh.git
synced 2025-12-20 01:21:22 +08:00
Add scripts to create coverage reports both natively and using docker image. Signed-off-by: Mario Maz <mmazzapater@gmail.com>
17 lines
477 B
Bash
Executable File
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
|
|
|
|
|