# Uncovered Conditions coverage with gcov

**URL:** <https://community.sonarsource.com/t/uncovered-conditions-coverage-with-gcov/9950>\
**Category:** SonarQube Cloud\
**Tags:** cfamily, coverage, sonarqube-cloud\
**Created:** [May 21, 2019, 4:29am UTC](https://community.sonarsource.com/t/uncovered-conditions-coverage-with-gcov/9950 "2019-05-21T04:29:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![torfinn](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/torfinn/32/4120_2.png) [@torfinn](https://community.sonarsource.com/u/torfinn)\
**Post date:** [May 21, 2019, 4:29am UTC](https://community.sonarsource.com/t/uncovered-conditions-coverage-with-gcov/9950/1 "2019-05-21T04:29:34Z")

</div>

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).

 ![image](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/original/2X/b/b86362194152b7c49840df4d3887d8a9c8089adb.png)

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

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [May 22, 2019, 8:47am UTC](https://community.sonarsource.com/t/uncovered-conditions-coverage-with-gcov/9950/2 "2019-05-22T08:47:58Z")

</div>

Hi @torfinn,

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

---

<div class="post-metadata">

**Author:** ![torfinn](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/torfinn/32/4120_2.png) [@torfinn](https://community.sonarsource.com/u/torfinn)\
**Post date:** [May 23, 2019, 8:18am UTC](https://community.sonarsource.com/t/uncovered-conditions-coverage-with-gcov/9950/3 "2019-05-23T08:18:33Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![mpaladin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/mpaladin/32/118_2.png) [@mpaladin](https://community.sonarsource.com/u/mpaladin)\
**Post date:** [May 23, 2019, 9:32am UTC](https://community.sonarsource.com/t/uncovered-conditions-coverage-with-gcov/9950/4 "2019-05-23T09:32:44Z")

</div>

Hi @torfinn,

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