# Why are my coverage statistics empty for the source files that my tests actually test?

**URL:** <https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696>\
**Category:** Support\
**Tags:** cpp, github\
**Created:** [July 4, 2020, 1:21am UTC](https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696 "2020-07-04T01:21:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CiaranWelsh](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@CiaranWelsh](https://community.codecov.com/u/CiaranWelsh)\
**Post date:** [July 4, 2020, 1:21am UTC](https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696/1 "2020-07-04T01:21:48Z")

</div>

I’m trying to setup codecov in my (C/C++ project)[[GitHub - sys-bio/libOmexMeta: libOmexMeta is a library aimed at providing developer-level support for reading, writing, editing and managing semantic annotations for biosimulation models.](https://github.com/sys-bio/libOmexMeta)] with [travis](https://travis-ci.org/github/sys-bio/libOmexMeta). I finally figured out how to exclude all non-project source files only to realize that literally all of my tested files show up red in the [codecov chart](https://codecov.io/gh/sys-bio/libOmexMeta). Given this codecov yaml (see below), could anybody suggest why there are no coverage statistics for my source files?

I’m using a cmake script with `--WITH_COVERAGE` flag which adds the `--coverage` flag:

```auto
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --coverage")

```

Then travis is building my project with these flags active and then uploading the information - or rather should be.

Thanks

Ciaran

```auto
{
    "codecov": {
        "bot": "CiaranWelsh", 
        "branch": "master", 
        "ci": [
            "travis.org"
        ], 
        "require_ci_to_pass": true, 
        "token": "03230181-dc42-4e8c- ****-4669**** 066"
    }, 
    "comment": {
        "behavior": "default", 
        "branches": [
            "^master$"
        ], 
        "layout": "header"
    }, 
    "coverage": {
        "precision": 2, 
        "range": [
            70.0, 
            100.0
        ], 
        "round": "down"
    }, 
    "ignore": [
        "(?s:tests/.*/[^\\/]+)\\Z", 
        "(?s:src/redland/raptor2\\-2\\.0\\.15/.*/[^\\/]+)\\Z", 
        "(?s:src/redland/rasqal\\-0\\.9\\.33/.*/[^\\/]+)\\Z", 
        "(?s:src/redland/redland\\-1\\.0\\.17/.*/[^\\/]+)\\Z", 
        "(?s:src/redland/RedlandAPIWrapper/test/[^\\/]+)\\Z", 
        "(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/.*/[^\\/]+)\\Z", 
        "(?s:third_party/.*/[^\\/]+)\\Z", 
        "(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/src/redland/CMakeFiles/redland\\-combined\\-static\\.dir/raptor2\\-2\\.0\\.15.*/[^\\/]+)\\Z", 
        "(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/src/redland/CMakeFiles/redland\\-combined\\-static\\.dir/rasqal\\-0\\.9\\.33.*/[^\\/]+)\\Z", 
        "(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/src/redland/CMakeFiles/redland\\-combined\\-static\\.dir/redland\\-1\\.0\\.17.*/[^\\/]+)\\Z", 
        "(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/tests/.*/[^\\/]+)\\Z", 
        "(?s:cmake\\-build\\-release\\-wsl\\-ubuntu1804/third_party/.*/[^\\/]+)\\Z"
    ], 
    "parsers": {
        "gcov": {
            "branch_detection": {
                "conditional": true, 
                "loop": true, 
                "macro": false, 
                "method": false
            }
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [July 13, 2020, 10:01pm UTC](https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696/2 "2020-07-13T22:01:13Z")

</div>

Apologies for the delay here @CiaranWelsh. Would you be able to push a new commit and share the SHA so I can take a look at our logs?

---

<div class="post-metadata">

**Author:** ![CiaranWelsh](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@CiaranWelsh](https://community.codecov.com/u/CiaranWelsh)\
**Post date:** [July 14, 2020, 8:55am UTC](https://community.codecov.com/t/why-are-my-coverage-statistics-empty-for-the-source-files-that-my-tests-actually-test/1696/3 "2020-07-14T08:55:09Z")

</div>

Hi Tom, No problem, thanks for responding. As it happens I’m nearly finished with another release - about a day or so - I’ll try again once I’ve fixed travis. Thanks,

Ciaran
