Questions tagged [coveralls]

Coveralls is a code test coverage tool and associated service to display the code test coverage trends.

Coveralls is a code test coverage tool and associated service to display the code test coverage trends. Coveralls offers good integration with travis, is free for open-source projects and also supports a large set of languages and hence is a popular choice for projects on github. The coverage image you see on many github readme files is generated using coveralls.

122 questions
66
votes
1 answer

Get multiple coverage reports in coveralls for a single repository

Is it possible to get separate coverage reports for front-end and back-end tests for a single repository? It seems one possible way is to concatenate the lcov reports into one and then ship to coveralls, as mentioned in this question. However, I…
prasun
  • 7,073
  • 9
  • 41
  • 59
29
votes
3 answers

Python Code Coverage and Multiprocessing

I use coveralls in combination with coverage.py to track python code coverage of my testing scripts. I use the following commands: coverage run --parallel-mode --source=mysource --omit=*/stuff/idont/need.py ./mysource/tests/run_all_tests.py coverage…
SmCaterpillar
  • 6,683
  • 7
  • 42
  • 70
26
votes
10 answers

Why is my coveralls.io badge not updating even when the builds are happening?

I am trying to use coveralls.io to show a coverage badge for my tests, but the coverage badge is stuck on "unknown". The relevant repo is here: https://github.com/cfogelberg/grunt-set-app-mode When I look at coveralls.io for that repo I see the same…
cfogelberg
  • 1,468
  • 19
  • 26
22
votes
2 answers

Testing os.Exit scenarios in Go with coverage information (coveralls.io/Goveralls)

This question: How to test os.exit scenarios in Go (and the highest voted answer therein) sets out how to test os.Exit() scenarios within go. As os.Exit() cannot easily be intercepted, the method used is to reinvoke the binary and check the exit…
abligh
  • 24,573
  • 4
  • 47
  • 84
22
votes
4 answers

Conditional Commands in tox? (tox, travis-ci, and coveralls)

tl;dr: I'm setting up CI for a project of mine, hosted on github, using tox and travis-ci. At the end of the build, I run converalls to push the coverage reports to coveralls.io. I would like to make this command 'conditional' - for execution only…
16
votes
2 answers

Coveralls GitHub Action - Error: Lcov file not found

I am configuring Coveralls using a GitHub Action. I searched but I cannot find how I should be able to generate the ./coverage/lcov.info file. When the action runs, since I don't have such file, I get: Using lcov file: ./coverage/lcov.info Error:…
Pitto
  • 8,229
  • 3
  • 42
  • 51
13
votes
2 answers

How can I connect Coveralls and Travis in GitHub?

I currently have TravisCI building on PRs in a public GitHub repo. The instructions for Coveralls say to put this in a .coveralls.yml file: service_name: travis-pro repo_token: That doesn't work for me because the .coveralls.yml file…
Greg
  • 10,696
  • 22
  • 68
  • 98
13
votes
6 answers

Is it possible to post coverage for multiple packages to Coveralls?

I want to track test coverage on a go project using Coveralls, the instructions for the integration reference using https://github.com/mattn/goveralls cd $GOPATH/src/github.com/yourusername/yourpackage $ goveralls…
Usman Ismail
  • 17,999
  • 14
  • 83
  • 165
12
votes
1 answer

How to configure Coveralls with Github Action?

I'm experiencing problems with my github repo configuration. Here it is - umbress. I have Github Actions CI enabled and configured and I want to have the coverage badge in my repo so everyone who wants to use my code in their projects knows that my…
10
votes
1 answer

Using python-coveralls from github-actions returns "Could not submit coverage: 422 Client Error"

Coveralls python wrapper (python-coveralls) recently received a major update (2.2.0 -> 3.0.0) and my github-actions workflow is no longer running. This is the relevant part of my workflow: test: runs-on: ubuntu-latest steps: {...…
bagerard
  • 5,681
  • 3
  • 24
  • 48
8
votes
1 answer

Python project code coverage badge with coveralls / github actions

I'm trying to add a code coverage % badge to my repos README.md I'm currently using Github actions to automate my pytest testing. I had that working on its own, but ive been struggling trying to get the coverage % badge. I am using coveralls for…
matthewmturner
  • 566
  • 7
  • 21
8
votes
1 answer

Keep token in YAML file *private/secure* (Coveralls.io)

I am on the Coveralls.io site and it says: If you intend to submit coverage data via a private CI or command line other than Travis Pro, add the following line to your .coveralls.yml : repo_token: k8hiVxiMr6UyolotPFQerkKWwOoYfbB Note: Do not make…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
8
votes
2 answers

Travis ci fails with mocha+coveralls

travis ci fails as the out put of reporter is empty string. NODE_ENV=test YOURPACKAGE_COVERAGE=1 mocha --compilers coffee:coffee-script/register --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js It works…
user1553777
  • 241
  • 3
  • 7
7
votes
3 answers

How to upload test reports of Kotlin sources to Coveralls?

I want to upload my Jacoco test report to Coveralls automatically after my Travis build finishes. It works for Java, but how to configure it for Kotlin? Error message I can generate a Jacoco test report locally and on Travis, but when Travis…
PHPirate
  • 7,023
  • 7
  • 48
  • 84
6
votes
3 answers

Cross-platform pipe command in NPM script

Considering we have NPM script with a pipe, similarly to what's suggested in Istanbul documentation: "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls" It obviously doesn't take Windows into account. How can such…
Estus Flask
  • 206,104
  • 70
  • 425
  • 565
1
2 3
8 9