Imre Kis | 1d2fbdd | 2019-12-13 11:42:08 +0100 | [diff] [blame^] | 1 | Code coverage |
| 2 | ============= |
| 3 | |
| 4 | Coverage processing flow |
| 5 | ------------------------ |
| 6 | |
| 7 | 1. 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 | |
| 15 | 2. Collecting coverage data from ``.gcda`` and ``.gcno`` file into ``lcov`` |
| 16 | coverage info file |
| 17 | |
| 18 | 3. Mapping c-picker generated files' coverage to the original source lines |
| 19 | |
| 20 | 4. Filtering coverage data for separating the coverage of the code under tests |
| 21 | and the coverage of the test code |
| 22 | |
| 23 | 5. 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.* |