I am trying to get a coverage report in meson. According to the documentation, it should be this simple:
First, initialize the build directory with this command.
$ meson <other flags> -Db_coverage=true
Then issue the following commands.
$ meson compile
$ meson test
$ meson compile coverage-html (or coverage-xml)
The coverage report can be found in the meson-logs subdirectory.
However, it does not work for me. All steps are okay, except for the last:
$ meson compile coverage_html
ERROR: Can't invoke target `coverage_html`: target not found
Any idea about this?