Description
I am using the new codecov uploader tool and it works great for most of my use cases except for cpp.
We have a monorepo setup with Python, Javascript and cpp package and using Flags to upload code coverage for each package.
I am building the cpp project with gcc with the correct code coverage flags. I run unittests and code coverage files are generated. All looks good so far.
I noticed that the new codecov tool have support for gcov, I am using this command to upload the code coverage data - codecov -r ../.. -F client-catapult --gcov-glob tests/ external/ --gcov-root .
======================== gcov ========================:
--gcov-root GCOV_ROOT
Project root directory when preparing gcov
--gcov-glob [GCOV_GLOB [GCOV_GLOB ...]]
Paths to ignore during gcov gathering
--gcov-exec GCOV_EXEC
gcov executable to run. Defaults to 'gcov'
--no-gcov-out Disable gcov output
--gcov-args GCOV_ARGS
extra arguments to pass to gcov
My problems are
- It doesnt seem like the data always show in the UI even though it was loaded. Not sure how long is the delay.
- When it does show, the code coverage data is not shown under the correct folder. In this case the flag is
client-catapult
, so the code coverage should be shown underclient/catapult
folder. I am not sure if I am missing some flag in gcov. This works correctly for the other flags
CI/CD URL
Currently just manually running commands to generate the code coverage
Codecov Output
Please provide the full output of running the uploader on your CI/CD. This will typically have the Codecov logo as ASCII.
==> Uploading
.url https://codecov.io
.query commit=805290d6de3347eca47790775d7cbb5b109a25ff&branch=dev&token=<secret>&slug=..%2F..&flags=client-catapult&package=py2.1.12
Gzipping contents..
Compressed contents to 5345945 bytes
Pinging Codecov...
Uploading to S3...
Uploading to S3 took 0:00:01.721345
https://codecov.io/github/symbol/symbol/commit/805290d6de3347eca47790775d7cbb5b109a25ff
Expected Results
The code coverage results does not show under the correct folder.
Actual Results
Expected the code coverage results to show under client/catapult
but they show under the root.
Additional Information
Here is the yaml file for the repo - Codecov