From 2e30b5a1e2ca21555bb3aa50f91e87f4d2821bb6 Mon Sep 17 00:00:00 2001 From: Weston Schmidt Date: Tue, 13 Jul 2021 03:17:27 -0700 Subject: Add support for gcovr --sonarqube report Sonarcloud.io only can read the sonarqube based report that gcovr can produce. This change enables support for this output in meson and ninja. Signed-off-by: Weston Schmidt --- docs/markdown/Feature-autodetection.md | 2 ++ docs/markdown/Unit-tests.md | 1 + 2 files changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/markdown/Feature-autodetection.md b/docs/markdown/Feature-autodetection.md index 4d366d939..237122662 100644 --- a/docs/markdown/Feature-autodetection.md +++ b/docs/markdown/Feature-autodetection.md @@ -26,6 +26,8 @@ Coverage When doing a code coverage build, Meson will check for existence of the binaries `gcovr`, `lcov` and `genhtml`. If version 3.3 or higher of the first is found, targets called *coverage-text*, *coverage-xml* +and *coverage-html* are generated. If version 4.2 or higher of the +first is found, targets *coverage-text*, *coverage-xml*, *coverage-sonarqube* and *coverage-html* are generated. Alternatively, if the latter two are found, only the target *coverage-html* is generated. Coverage reports can then be produced simply by calling e.g. `meson compile diff --git a/docs/markdown/Unit-tests.md b/docs/markdown/Unit-tests.md index 5233a4fe8..c9856d4b3 100644 --- a/docs/markdown/Unit-tests.md +++ b/docs/markdown/Unit-tests.md @@ -47,6 +47,7 @@ functions that get called). 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) (version 3.3 or higher) +`coverage-sonarqube` which is provided by [Gcovr](http://gcovr.com) (version 4.2 or higher) and `coverage-html`, which requires [Lcov](https://ltp.sourceforge.io/coverage/lcov.php) and [GenHTML](https://linux.die.net/man/1/genhtml) or -- cgit v1.2.3