Make README more beautiful (#19)
All checks were successful
Build ptprnt / build (push) Successful in 3m37s

Reviewed-on: moritz/ptouch-prnt#19
This commit was merged in pull request #19.
This commit is contained in:
2025-10-16 20:20:56 +00:00
parent d3e137ff9c
commit 8865117c49
3 changed files with 150 additions and 0 deletions

29
scripts/generate_coverage.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
SCRIPT_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
HTML_COV_PATH="coverageReport/html"
XML_COV_PATH="coverageReport/xml"
HTML_START_FILE="index.html"
echo "Generating Coverage report for ptprnt"
cd $SCRIPT_PATH/..
ninja -C builddir
ninja -C builddir test
mkdir -p ${HTML_COV_PATH}
gcovr --html --html-details --html-syntax-highlighting --filter src --output ${HTML_COV_PATH}/${HTML_START_FILE}
mkdir -p ${XML_COV_PATH}
gcovr --xml-pretty --filter src --output ${XML_COV_PATH}/cov.xml
if [ $? ]
then
echo "Coverage report successful generated!"
echo "Open: file://${SCRIPT_PATH}/${HTML_COV_PATH}/${HTML_START_FILE}"
else
echo "Error generating coverage report!"
fi
rm *.gcov