diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-03-13 21:12:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 21:12:16 +0200 |
commit | ae0e469b0692862dae10ceb02799feb3f117ce26 (patch) | |
tree | d7de1e59b84965affc30ff8a7c22b44d8f23ba16 /docs/markdown | |
parent | 552916d2d24723ef579ee54b18b8bd7b25328cf8 (diff) | |
parent | dfc0655bcd6f00e2711331ddf582d1fa18223d70 (diff) | |
download | meson-ae0e469b0692862dae10ceb02799feb3f117ce26.zip meson-ae0e469b0692862dae10ceb02799feb3f117ce26.tar.gz meson-ae0e469b0692862dae10ceb02799feb3f117ce26.tar.bz2 |
Merge pull request #3145 from thejk/gcovr
Support gcovr >= 3.1 and add gcovr html report as fallback
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Feature-autodetection.md | 2 | ||||
-rw-r--r-- | docs/markdown/Unit-tests.md | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/markdown/Feature-autodetection.md b/docs/markdown/Feature-autodetection.md index 65318ec..f865174 100644 --- a/docs/markdown/Feature-autodetection.md +++ b/docs/markdown/Feature-autodetection.md @@ -16,4 +16,4 @@ If you do not wish to use CCache for some reason, just specify your compiler wit Coverage -- -When doing a code coverage build, Meson will check the existence of binaries `gcovr`, `lcov` and `genhtml`. If the first one is found, it will create targets called *coverage-text* and *coverage-xml*. If the latter two are found, it generates the target *coverage-html*. You can then generate coverage reports just by calling e.g. `ninja coverage-xml`. +When doing a code coverage build, Meson will check the existence of binaries `gcovr`, `lcov` and `genhtml`. If the first one is found, it will create targets called *coverage-text* and *coverage-xml*. If the latter two or a new enough `gcovr` is found, it generates the target *coverage-html*. You can then generate coverage reports just by calling e.g. `ninja coverage-xml`. diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md index afbeaa0..53ce9ec 100644 --- a/docs/markdown/Unit-tests.md +++ b/docs/markdown/Unit-tests.md @@ -30,7 +30,7 @@ Note how you need to specify multiple values as an array. Coverage -- -If you enable coverage measurements by giving Meson the command line flag `-Db_coverage=true`, you can generate coverage reports. Meson will autodetect what coverage generator tools you have installed and will generate the corresponding targets. These targets are `coverage-xml` and `coverage-text` which are both provided by [Gcovr](http://gcovr.com) and `coverage-html`, which requires [Lcov](https://ltp.sourceforge.io/coverage/lcov.php) and [GenHTML](https://linux.die.net/man/1/genhtml). +If you enable coverage measurements by giving Meson the command line flag `-Db_coverage=true`, you can generate coverage reports. Meson will autodetect what coverage generator tools you have installed and will generate the corresponding targets. These targets are `coverage-xml` and `coverage-text` which are both provided by [Gcovr](http://gcovr.com) and `coverage-html`, which requires [Lcov](https://ltp.sourceforge.io/coverage/lcov.php) and [GenHTML](https://linux.die.net/man/1/genhtml) or [Gcovr](http://gcovr.com) with html support. The output of these commands is written to the log directory `meson-logs` in your build directory. |