CLion - running tests with coverage
CLion 2021.1.1
I have a CMake project that contains some doctest tests. I have a debug build configuration that successfully runs the tests. I want to run the tests with coverage.
I selected 'Run XXX with Coverage' from the menu. CLion built the project, stated that no coverage files could be found and offered to fix the build configuration for me. I accepted the offer. CLion re-built the project using a newly created 'Debug - Coverage' build profile, but the build failed and continues to fail. The error message reported is terse:
2021-05-04 10:19:06.886+00:00 [default] [ 2695] error - --id is required
What id is required? Where should I supply it? I can find no supporting error messages in the CLion logs (Help | Show log in files).
Please sign in to leave a comment.
Fixed. I closed CLion, deleted the build folders, the .idea folder and re-opened the project. Works now.