Skip to content

CI: Restore cpp coverage generation

Anton Joubert requested to merge fix-cpp-coverage-build-dir into develop

Another fix, after regression in !788 (merged). Oops 🤦

Before:

image

After:

image

The build-dir needs to be specified, otherwise the binary files end up in /tmp/ and are deleted after the build! Coverage is written in the same location as the binary files, so this is no longer possible. We see no coverage reported for the cpp files.

The binaryDir is specified in the ci-build preset from CMakePresets.json, but it doesn't seem to be sufficient.

Merge request reports

Loading