coveralls

How to configure Coveralls with Github Action?

霸气de小男生 提交于 2021-02-04 05:45:33
问题 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 code is well-tested. But it seems that I missing something because my coverage badge has an "unknown" status for a long time already. CI steps are: Run build Run tests and generate coverage ( jest --coverage --config config/jest.js ). This will

How to configure Coveralls with Github Action?

柔情痞子 提交于 2021-02-04 05:42:28
问题 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 code is well-tested. But it seems that I missing something because my coverage badge has an "unknown" status for a long time already. CI steps are: Run build Run tests and generate coverage ( jest --coverage --config config/jest.js ). This will

Maven coveralls plugin

守給你的承諾、 提交于 2019-12-23 02:55:24
问题 I'm using travis CI and coveralls for a project. I get the error Processing of input or output data failed: Report submission to Coveralls API failed with HTTP status 422: Unprocessable Entity (Couldn't find a repository matching this job.) . You can see the build there. My pom.xml : <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.6</version> <configuration> <outputDirectory>${basedir}/target</outputDirectory> <format>xml</format>

Python Code Coverage and Multiprocessing

独自空忆成欢 提交于 2019-12-10 00:52:25
问题 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 combine coveralls --verbose This works quite nicely with the exception of multiprocessing. Code executed by worker pools or child processes is not tracked. Is there a possibility to also track multiprocessing code? Any particular option I am

Cross-platform pipe command in NPM script

ⅰ亾dé卋堺 提交于 2019-12-08 02:24:14
问题 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 command with a pipe be made cross-platform in Node.js package? The question is specific to Coveralls but isn't limited to it; this could be any command with a pipe. 回答1: Both Bash and the Windows command line (e.g. cmd.exe and PowerShell ) have the pipe

Maven coveralls plugin

青春壹個敷衍的年華 提交于 2019-12-06 15:43:43
I'm using travis CI and coveralls for a project. I get the error Processing of input or output data failed: Report submission to Coveralls API failed with HTTP status 422: Unprocessable Entity (Couldn't find a repository matching this job.) . You can see the build there . My pom.xml : <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>2.6</version> <configuration> <outputDirectory>${basedir}/target</outputDirectory> <format>xml</format> <maxmem>256m</maxmem> <!-- aggregated reports for multi-module projects --> <aggregate>true</aggregate> <

Cross-platform pipe command in NPM script

自闭症网瘾萝莉.ら 提交于 2019-12-06 10:55:02
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 command with a pipe be made cross-platform in Node.js package? The question is specific to Coveralls but isn't limited to it; this could be any command with a pipe. Both Bash and the Windows command line (e.g. cmd.exe and PowerShell ) have the pipe operator ( | ) so that shouldn't be a concern regarding cross-platform compatibility. Given your example

Python Code Coverage and Multiprocessing

非 Y 不嫁゛ 提交于 2019-12-04 22:51:31
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 combine coveralls --verbose This works quite nicely with the exception of multiprocessing . Code executed by worker pools or child processes is not tracked. Is there a possibility to also track multiprocessing code? Any particular option I am missing? Maybe adding wrappers to the multiprocessing library to start coverage every time a new process is

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

蓝咒 提交于 2019-12-03 10:20:16
问题 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 your_repos_coveralls_token However, this only posts the results for one package and running for packages in turn does not work as the final run overwrites all other runs. Has anyone figured out how to get coverage for multiple packages? 回答1: I ended up using this script: echo "mode:

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

只愿长相守 提交于 2019-11-27 13:42:36
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 value. This method is described at slide 23 on this presentation by Andrew Gerrand (one of the core members of the Go team); the code is very simple and is reproduced in full below. The relevant test and main files look like this (note that this pair of files alone is an MVCE) : package foo import ( "os" "os/exec" "testing" ) func TestCrasher(t