blob: 6ac6d9f132e2e077eacfdd85aba379492e69b7ab [file] [log] [blame]
Imre Kis1d2fbdd2019-12-13 11:42:08 +01001Code coverage
2=============
3
4Coverage processing flow
5------------------------
6
71. Prerequisites
8
9 1. Having :cmake:variable:`COVERAGE`` CMake variable set to ``ON``
10
11 2. Building all or selected test binaries with coverage flags
12
13 3. Running all or selected test binaries
14
152. Collecting coverage data from ``.gcda`` and ``.gcno`` file into ``lcov``
16 coverage info file
17
183. Mapping c-picker generated files' coverage to the original source lines
19
204. Filtering coverage data for separating the coverage of the code under tests
21 and the coverage of the test code
22
235. Generating HTML coverage report from the filtered lcov info files
24
25
26.. cmake-module:: ../../cmake/Coverage.cmake
27
28
29--------------
30
31*Copyright (c) 2019-2020, Arm Limited. All rights reserved.*