Re: [-SPAM-] [PATCH v2 00/10] meson: wire up bits and pieces from "contrib/"
- From
Ramsay Jones <ramsay@ramsayjones.plus.com>
- Date
- Feb 21, 2025, 19:50 UTC
- Message-ID
- <8bfd177a-8f31-4331-bb84-b60e3461adb3@ramsayjones.plus.com>
- In-Reply-To
- <Z7bK8jDhJT4qRxvI@pks.im>
On 20/02/2025 06:25, Patrick Steinhardt wrote: [snip]
Show 6 quoted lines
> 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