From: Ramsay Jones Date: Fri, 21 Feb 2025 19:50:55 GMT Subject: Re: [-SPAM-] [PATCH v2 00/10] meson: wire up bits and pieces from "contrib/" Message-ID: <8bfd177a-8f31-4331-bb84-b60e3461adb3@ramsayjones.plus.com> In-Reply-To: On 20/02/2025 06:25, Patrick Steinhardt wrote: [snip] > Coverage reports are something that Meson already does natively: > > meson setup build -Db_coverage=true > meson compile -C build > meson test -C build > ninja -C build coverage-html I just tried this (I had to install 'gcovr' first) and the results look pretty good: ... $ ninja -C build coverage-html ninja: Entering directory `build' [1/1] Generates HTML coverage report Ubuntu LLVM version 18.1.3 Optimized build. (INFO) Reading coverage data... (INFO) Writing coverage report... lines: 85.2% (144103 out of 169233) functions: 93.3% (10404 out of 11151) branches: 76.0% (78627 out of 103419) Html coverage report can be found at file:///home/ramsay/git/build/meson-logs/coveragereport/index.html $ :) [Although I have worked on projects where some of those numbers would have been considered too low! :( ] ATB, Ramsay Jones