From cd088bb1b7c305e3455bc19a416d29c1cffc3b9e Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Mon, 28 Jun 2021 04:26:28 +0200 Subject: Add back a check_coverage target Activate it by running cmake with -DAM_COVERAGE=ON Change-Id: Ifea2f4813fa9716eccd5fb01639b1868976f86aa Reviewed-by: Dominik Holland Reviewed-by: Qt CI Bot --- doc/installation.qdoc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'doc') diff --git a/doc/installation.qdoc b/doc/installation.qdoc index d9f51d08..99d2cc12 100644 --- a/doc/installation.qdoc +++ b/doc/installation.qdoc @@ -217,23 +217,22 @@ There are three different ways to specify a hardware ID: All executables, including the unit tests, can be found in the build folder's \c bin directory, after compiling. -\omit + \section1 Generate Code-Coverage Data -Instead of doing a normal build, you can also create a coverage build by running \c{make coverage}. -Since every compile step needs to be instrumented with special compiler flags, make sure to run -\c{make clean} before \c{make coverage}. +Instead of doing a normal build, you can also create a coverage build by running +\c{cmake -DAM_COVERAGE=ON}. Since every compile step needs to be instrumented with special compiler +flags, make sure to create a new build directory, or at least clean an existing one. Using a build like this enables you to generate HTML coverage reports with the following command in the build directory: \badcode -make check-coverage +cmake --build . --target check_coverage \endcode The command line output provides you the URL to the generated report. -\endomit \section1 System Setup -- cgit v1.2.1