codecov.io is a hosted code coverage solution that provides highly integrated tools to group, merge, archive, and compare coverage reports.
Questions tagged [codecov]
101 questions
4
votes
1 answer
Codecov doesn't recognize flags from codecov.yml config
Recently I migrate from 3 different repos to one monorepo and setup folowing .codecov.yml adding flags option. However, Codecov seems to ignore it and keeps reporting that no flags where provided.
coverage:
status:
project: no
patch: yes
…

daniula
- 6,898
- 4
- 32
- 49
4
votes
0 answers
Setting up Codecov for private GitHub repository
Really liked this post https://agostini.tech/2017/07/16/code-coverage-with-codecov and it helped me to setup codecov for my repositories, but the feature “codecov will generate a mini code coverage report and post it as a comment to the pull…

Rocky
- 137
- 1
- 11
4
votes
1 answer
CIrcle CI 2.0 codecov: command not found
I am migrating project to Circle CI 2.0.
Here is my config.yml file.
version: 2
jobs:
build:
docker:
- image: circleci/android:api-26-alpha
- image: circleci/python:3.6.1
steps:
- checkout
- run:
name:…

M.P.
- 85
- 1
- 11
3
votes
1 answer
How to show green/red colors in Github PRs showing code coverage
Codecov has data for my repository's code coverage, and the report it shows is useful, e.g.
But it would be much more useful if I can show code coverage in the /files page when looking at a PR on Github itself, i.e. something like this:
According…

Maria Ines Parnisari
- 16,584
- 9
- 85
- 130
3
votes
1 answer
Codecov with Swift Package
Introduction
I have written a Swift Package and would like to integrate Codecov as a part of my CI (set up with Github Actions).
Here is my .yml file:
name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main"…

narek.sv
- 845
- 5
- 22
3
votes
1 answer
No coverage files located, please try use `-f`, or change the project root with `-R`
I have files in the folder:
coverage/lcov.info
and I will upload the file using codecov uploader version 0.2.4 in CI Gitlab (using flutter)
but got error
There was an error running the uploader: No coverage files located, please try use `-f`, or…

Rohmatul Laily
- 371
- 3
- 15
3
votes
2 answers
Creating a test report with Azure Pipelines and Coverlet does not create the coverage.opencover.xml file
Here is my solution structure:
.
├── Application
├── Application.Core
├── Application.Domain
└── Application.UnitTests -> HAS codecov 1.9.0 NuGet package installed
The build script works otherwise fine, but I'm unable to get it to create the…

ajr
- 874
- 2
- 13
- 29
3
votes
0 answers
Generating Codecov reports with Xcode Project
Codecov is failing to process the code coverage reports. It appears to upload successfully but gives the error: "There was an error processing coverage reports".
My project is already successfully integrated with Travis-CI. I am just trying to post…

Drew Cortright
- 55
- 5
3
votes
3 answers
How to limit which organizations to allow access for when oauth'ing CodeCov.io for Github.com?
I have a private repository that belongs to an organization setup with https://codecov.io/. The code coverage reports are available at https://codecov.io/gh/myorganization/our-repository. However, when I click that last link I get this:
Even though…

L42
- 3,052
- 4
- 28
- 49
3
votes
0 answers
Eval error when publishing to codecov from Travis
My setup includes Travis-ci, Jacoco plugin via maven pom, Codecov and Java10.
When trying to setup the code coverage functionality travis-ci outputs an syntax error when evaluating the codecov-bash script (see the last 2 lines in Travis ci…

Kilian
- 1,540
- 16
- 28
3
votes
0 answers
Missing files with code coverage
I have a project that I compile with the intel toolchain. All the .f90 files are compiled to corresponding .o files in the bin directory. When I use the codecov utility I get an HTML with the list of covered files. However that list is missing a…

Manfredo
- 1,760
- 4
- 25
- 53
3
votes
1 answer
codecov.io gives error in combination with Bitbucket pipelines
I did set up a private repo on Bitbucket to host a PHP project. For this project I also use the pipelines integration.
This is the content of my pipelines yaml file:
image: php:7.1.4
pipelines:
default:
- step:
script:
-…

Luc Wollants
- 880
- 9
- 27
2
votes
1 answer
R package code coverage with test_that and readline()
Good morning,
I'm building an R package and trying to get code coverage (via codecov) as high as possible. But, I'm struggling to use test_that when the function requires input via readline(). Here is a simplified function using readline() in a…

Toluene
- 193
- 6
2
votes
1 answer
how to avoid partial hit in codecov for a ternary assignment
I have a vue function that returns an array of strings
1 selectStyles (): string[] {
2 const baseStyles = ['selected-label', 'px-4']
3 const placeholderStyle = this.internalValue?.length === 0 ? 'text-gray-400' : 'text-black'
4
5 return…

saylestyler
- 389
- 1
- 4
- 20
2
votes
1 answer
CircleCI upload to CodeCov cannot find coverage report?
As TravisCI.org is no longer free for small open source projects, I am trying to setup CircleCI and CodeCov.
Creating the Coverage report in CircleCI seems to work:
But uploading to CodeCov fails, claming report cannot be found:
I followed the…

Adam
- 25,960
- 22
- 158
- 247