Uncovered Conditions coverage with gcov

I’ve successfully generated gcov output and uploaded them to SonarCloud for my C++ project. However, the “Uncovered Conditions” shown in SonarCloud is not working (always shows - for every part of my source code).

I was wondering what I need to do in order to enable this functionality? Currently, I am passing these flags to gcov: -a -b -c -f -u -p -l. This should enable branch coverage in the gcov output, as far as I can tell from gcov -help

Thank you

Hi @torfinn,

could you manually check the *.gcov files to see if they contains condition coverage information?

Hi @mpaladin, I don’t know what happened, but the condition coverage suddenly and magically appeared in SonarCloud now! So we can close this I guess :slight_smile:

1 Like

Hi @torfinn,

great to hear that, thank you for updating the thread.