|
|
The code coverage report generation require following steps:
|
|
|
- the `gcov` and `gcovr` tools must be installed,
|
|
|
- enable `OGS_COVERAGE` in the cmake configuration. This will add necessary compile flags.
|
|
|
- run the executable/setup, the coverage of which you want to assess. The coverage information is added.
|
|
|
- generate html information with `gcovr` tool
|
|
|
```sh
|
|
|
gcovr -r ogs/source/code --html[-details] -o output.html build/folder
|
|
|
```
|
|
|
|
|
|
For the clang compiler specify `--gcov-executable 'llvm-cov gcov'` option too. |
|
|
\ No newline at end of file |