diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2023-09-13 16:31:52 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2023-09-22 15:54:30 +0200 |
commit | 42d29441914da263a160d631f56c6d95f85eac70 (patch) | |
tree | deddaac9aa09de8189b9ea8a3c2e91d358cb5760 /config_help.txt | |
parent | f2ec221bd62b8722915db9fc7dc3eb78991f6e6d (diff) |
Add coverage and coverage-gcov features
Features enable code coverage collecting using the gcov tool. The
resulting reports can then be post-processed by lcov or similar tools.
[ChangeLog][CMake][Coverage] Added the coverage configuration argument.
The only supported coverage tool at the moment is gcov. The argument
requires Qt is built in Debug otherwise setting the argument leads to
the configuration error. Typical usage:
<...>/configure -developer-build -coverage gcov
Task-number: QTBUG-86223
Change-Id: I39b2061f544997a7c4fe6f4d135c0ab447f15a17
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'config_help.txt')
-rw-r--r-- | config_help.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config_help.txt b/config_help.txt index 7681b5f79f..c360c8fdd1 100644 --- a/config_help.txt +++ b/config_help.txt @@ -103,6 +103,7 @@ Build options: -qtnamespace <name> .. Wrap all Qt library code in 'namespace <name> {...}'. -qtlibinfix <infix> .. Rename all libQt6*.so to libQt6*<infix>.so. + -coverage <tool> ..... Instrument with the code coverage tool. -gcov ................ Instrument with the GCov code coverage tool [no] -trace [backend] ..... Enable instrumentation with tracepoints. |