|
|
**Code coverage** is the fraction of actual written code lines that are executed during unit tests (ctest). Thus, writing code requires writing unit tests. Each line of written code should be checked by one unit test. Only very clear exceptions can be accepted. The coverage must approach 100%. Writing unit tests is at least as important than writing actual code.
|
|
|
|
|
|
To obtain the detailed code coverage report, you can either
|
|
|
- login to gitlab, select the latest CI pipeline, select the `coverage` job (run it, if not yet done), click on "Download", unpack and store the coverage report
|
|
|
- locally, run
|
... | ... | |