Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-playground/overalls
:jeans:Multi-Package go project coverprofile for tools like goveralls
https://github.com/go-playground/overalls
coverprofile
Last synced: 30 days ago
JSON representation
:jeans:Multi-Package go project coverprofile for tools like goveralls
- Host: GitHub
- URL: https://github.com/go-playground/overalls
- Owner: go-playground
- License: mit
- Created: 2015-07-30T11:30:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-30T18:54:48.000Z (almost 5 years ago)
- Last Synced: 2024-10-25T04:09:48.812Z (about 2 months ago)
- Topics: coverprofile
- Language: Go
- Homepage:
- Size: 2.12 MB
- Stars: 114
- Watchers: 7
- Forks: 26
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - overalls - Multi-Package go project coverprofile for tools like goveralls. (Continuous Integration / Standard CLI)
- fucking-awesome-go - overalls - Multi-Package go project coverprofile for tools like goveralls. (Continuous Integration / Standard CLI)
- awesome-go - overalls - Multi-Package go project coverprofile for tools like goveralls. (Continuous Integration / Standard CLI)
- awesome-go - overalls - Multi-Package go project coverprofile for tools like goveralls. (Continuous Integration / Standard CLI)
- awesome-go - overalls - Multi-Package go project coverprofile for tools like goveralls - ★ 94 (Continuous Integration)
- awesome-go-extra - overalls - Package go project coverprofile for tools like goveralls|111|26|2|2015-07-30T11:30:11Z|2019-12-30T18:54:48Z| (Continuous Integration / Advanced Console UIs)
- awesome-go-with-stars - overalls - Multi-Package go project coverprofile for tools like goveralls. (Continuous Integration / Standard CLI)
- awesome-go-cn - overalls - playground/overalls) [![godoc][D]](https://godoc.org/github.com/go-playground/overalls) (持续集成 / 标准CLI)
- awesome-go-plus - overalls - Multi-Package go project coverprofile for tools like goveralls. ![stars](https://img.shields.io/badge/stars-115-blue) (Continuous Integration / Standard CLI)
- awesome-go-plus - overalls - Multi-Package go project coverprofile for tools like goveralls. (Continuous Integration / Standard CLI)
README
Package overalls
================[![Build Status](https://travis-ci.org/go-playground/overalls.svg?branch=master)](https://travis-ci.org/go-playground/overalls)
[![GoDoc](https://godoc.org/github.com/go-playground/overalls?status.svg)](https://godoc.org/github.com/go-playground/overalls)Package overalls takes multi-package go projects, runs test coverage tests on all packages in each directory and finally concatenates into a single file for tools like goveralls and codecov.io.
Usage and documentation
------
##### Example
overalls -project=github.com/go-playground/overalls -covermode=count -debug##### then with other tools such as [goveralls](https://github.com/mattn/goveralls)
goveralls -coverprofile=overalls.coverprofile -service semaphore -repotoken $COVERALLS_TOKEN
##### or [codecov.io](https://github.com/codecov/example-go)
mv overalls.coverprofile coverage.txt
export CODECOV_TOKEN=###
bash <(curl -s https://codecov.io/bash)##### note:
1. goveralls and codecover currently do not calculate coverage the same way as `go tool cover` see [here](https://github.com/mattn/goveralls/issues/103) and [here](https://github.com/codecov/example-go/issues/13).2. overalls (and go test) by default will not calculate coverage "across" packages. E.g. if a test in package A covers code in package B overalls will not count it. You may or may not want this depending on whether you're more concerned about unit test coverage or integration test coverage. To enable add the coverpkg flag.
`overalls -project=github.com/go-playground/overalls -covermode=count -debug -- -coverpkg=./...````shell
$ overalls -helpusage: overalls -project=[path] -covermode[mode] OPTIONS -- TESTOPTIONS
overalls recursively traverses your projects directory structure
running 'go test -covermode=count -coverprofile=profile.coverprofile'
in each directory with go test files, concatenates them into one
coverprofile in your root directory named 'overalls.coverprofile'OPTIONS
-project
Your project path as an absolute path or relative to the '$GOPATH/src' directory
example: -project=github.com/go-playground/overalls-covermode
Mode to run when testing files.
default:countOPTIONAL
-ignore
A comma separated list of directory names to ignore, relative to project path.
example: -ignore=[.git,.hiddentdir...]
default: '.git'-debug
A flag indicating whether to print debug messages.
example: -debug
default:false-concurrency
Limit the number of packages being processed at one time.
The minimum value must be 2 or more when set.
example: -concurrency=5
default: unlimited
```TESTOPTIONS
Any flags after `--` will be passed as-is to `go test`.
For example:```bash
overalls -project=$PROJECT -debug -- -race -v
```Will call `go test -race -v` under the hood in addition to the `-coverprofile`
commands.How to Contribute
------Make a pull request.
If the changes being proposed or requested are breaking changes, please create an issue.
License
------
Distributed under MIT License, please see license file in code for more details.