Skip to content

Resolve "Add CMake option to enable coverage on unit tests"

What does this MR do?

  • Add the CMake option COVERAGE_REPORT to enable coverage flags on all DORiE targets.
  • Update the CI Pipeline:
    • Enable COVERAGE_REPORT on the build jobs for tests

    • Run gcovr coverage utility as after_script, which runs after the job, even if it fails.

    • The total coverage reported by GitLab is the mean of both coverage values:

      Screen_Shot_2019-10-10_at_19.05.56

    • Add job needs such that test jobs can execute as quickly as possible.

Is there something that needs to be double checked?

No

Can this MR be accepted?

  • Implemented CMake option COVERAGE_REPORT
  • Added/Updated tests:
    • Add coverage report to test:unit-tests and test:system-tests
    • Update job needs
  • Added/Updated documentation
  • Pipeline passing
  • Squash option set
  • Delete branch option set
  • Added entry to CHANGELOG.md

Related issues

Closes #163 (closed)

Edited by Lukas Riedel

Merge request reports