Page MenuHomePhabricator

Re-enable code coverage testing in MITK CI
Closed, WontfixPublic

Description

There is a superbuild variable WITH_COVERAGE which should turn on code coverage reports for Linux dartclients.

For testing I added this to the MITKDahboardScript:

ctest_coverage(
  BUILD "${CTEST_BINARY_DIRECTORY}/MITK-build"
)

submit(PARTS Test Coverage Done)

The necessary flags are set correclty (-fprofile-arcs -fuse-coverage) and coverage information is generated during CTest runs of the test. However something fails during collection of the data. (No coverage information found)

However, changing into MITK-build and calling ctest -D Experimentalworks perfectly.

This ticket is primarily for reference, I can keep looking at the issue with low priority, if someone wants to take over I'm happy to help

Event Timeline

kislinsk triaged this task as Normal priority.Apr 6 2021, 12:40 AM

I tried several things again, similar to described above, same situation.

Unfortunately even a "manual" did not work, since make ExperimentalSubmit resulted in a 401 authorization error though I have the correct API token and submission works in the driver script.

I found one last hint, about a possible interference with ccache , last try ...

kislinsk added a project: Auto-closed.

Hi there! ๐Ÿ™‚

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. ๐Ÿš‘

Best wishes,
The MITK devs