From 113a4a3b3e83d87b3a1ccc0355786be4b87c7b67 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Mon, 17 Mar 2025 00:21:27 -0400 Subject: [PATCH] Now have a coverage report. --- Makefile | 2 +- scripts/coverage_report.ps1 | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 scripts/coverage_report.ps1 diff --git a/Makefile b/Makefile index 0844a5c..f202640 100644 --- a/Makefile +++ b/Makefile @@ -47,4 +47,4 @@ win_installer: powershell 'start "C:\Program Files (x86)\solicus\InstallForge\bin\ifbuilderenvx86.exe" win_installer.ifp' coverage_report: - echo "test" + powershell 'scripts/coverage_report.ps1' diff --git a/scripts/coverage_report.ps1 b/scripts/coverage_report.ps1 new file mode 100644 index 0000000..88f62a6 --- /dev/null +++ b/scripts/coverage_report.ps1 @@ -0,0 +1,10 @@ +rm -recurse -force coverage/* +cp *.cpp,*.hpp,*.rl builddir + +. .venv/Scripts/activate + +rm -recurse -force coverage + +gcovr -o coverage/ --html --html-details --gcov-ignore-errors all -e builddir/subprojects -e subprojects . + +start .\coverage\coverage_details.html