Questions tagged [codecov]

codecov.io is a hosted code coverage solution that provides highly integrated tools to group, merge, archive, and compare coverage reports.

101 questions
1
vote
0 answers

Excluding files from jacoco for code coverage using Jenkins pipeline

I am using jacoco maven plugin for build and jacoco() & codecov in my JenkinsFile to report code coverage. I have exceuded some file in the jacoco maven plugin. The exclusion works on the report generated by codecov but not for…
1
vote
0 answers

How to spyon session storage in angular jasmine

How to write the spyon for session storage ? ngOnInit(){ this.role=JSON.parse(sessionStorage.getItem('currentUser))['role']; }
1
vote
1 answer

Codecov: Set auto target along with a min value

With codecov, you can set the target coverage for your project. Assuming a project has 90% coverage right now, coverage: status: project: default: target: auto threshold: 1% this will allow the next pr to reduce the…
Mat G
  • 360
  • 2
  • 9
1
vote
0 answers

Codecov: No coverage information found on head

My Codecov check passes, even though the coverage decreases in my PR. GitHub tells me that Codecov throws the error No coverage information found on head I have no idea what that means. Could someone explain that to me? How can I fix this…
User12547645
  • 6,955
  • 3
  • 38
  • 69
1
vote
2 answers

Where is coverage.xml located in Codecov?

I use /home/runner/work/SIESTAstepper/SIESTAstepper/coverage.xml but I think the path is not correct. My report is not uploading on GitHub Actions. Full file.
1
vote
1 answer

GitLab CI external test for coverage "fails"

I am using GitLab and its CI for a project. I used to test coverage with some CI jobs until these scripts stopped working ("keyword cobertura not valid"). Simultaneously I found that the CI added some "external" jobs automatically handling coverage…
alfC
  • 14,261
  • 4
  • 67
  • 118
1
vote
1 answer

CodeCov displays different result compared to local results

When I upload my coverage report to codecov, it show a smaller coverage compared to my local result. Codecov also does not show all files that have been tested. This are my commands: coverage run -m pytest -m "not e2e" coverage xml ./codecov -t
hendrikschneider
  • 1,696
  • 1
  • 14
  • 26
1
vote
1 answer

How can codecov verify a upload request without a token?

In this section, the codecov documentation says: The upload token is required for all uploads, except originating from public projects using Travis-CI, Circle CI, Azure, Github Actions. What prevents "hackers" from uploading a fake codecov file…
1
vote
1 answer

I need help sending Android code coverage using github Action to Codecov

I am trying to send my Unit test code coverage to Codecov using Github action but it is not working and showing me the below response. this is the response I have been getting since
1
vote
1 answer

Android Studio Code Coverage Report is Different than Codecov.io

When I run the Code Coverage Report using Android Studio I get about 17.8% of Code coverage whereas on Codecov.io I am only getting only 10.69%
1
vote
1 answer

OpenCover.Console.exe - Incorrect Arguments: The argument 'xxx.' is not recognised

I am implementing CodeCov for code coverage in c# with Visual Studio 2019 and I am using OpenCover and Xunit. My solution has two projects (Crossroads and CrossroadsUnitTests) I have added the required nuget packages to the solution (OpenCover,…
John Erbynn
  • 355
  • 1
  • 4
  • 14
1
vote
0 answers

Pass codecov variables to docker build

I would like to pass the coverage report to codecov during docker build phase. Like this: ci_env=`bash <(curl -s https://codecov.io/env)` docker build . --build-arg ci_env=$ci_env This is currently not possible since ci_env is a list of…
1
vote
1 answer

nyc report is not uploaded to Codecov in TravisCI build

I have configured codecov to my NodeJS application. When I run the npm run codecov --disable=gcov it generates the reports and I can see the results. But in my TravisCI build, I get a message in the log as X Failed to read file at ==> Scanning for…
Jude Niroshan
  • 4,280
  • 8
  • 40
  • 62
1
vote
0 answers

Can I change the default branch for a private repo in codecov using the api?

For some reason that I'm not entirely certain of, the default branches on my private gitlab repos get what looks like a random value: Using the api, I can get all settings from GET https://codecov.io/api/pub/gl/myteam/myrepo/settings with the…
thebjorn
  • 26,297
  • 11
  • 96
  • 138
1
vote
1 answer

Codecov: error processing coverage reports

I want to add codecov to this project. Yet, codecov says here that it can not process my coverage.xml file that I created with this command: pytest python/tests -v --junitxml=coverage.xml in the Travis CI script. Everything prior to that like…