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