
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
github.com/go-playground/overalls
Advanced tools
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.
overalls -project=github.com/go-playground/overalls -covermode=count -debug
goveralls -coverprofile=overalls.coverprofile -service semaphore -repotoken $COVERALLS_TOKEN
mv overalls.coverprofile coverage.txt
export CODECOV_TOKEN=###
bash <(curl -s https://codecov.io/bash)
goveralls and codecover currently do not calculate coverage the same way as go tool cover see here and here.
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=./...
$ overalls -help
usage: 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:count
OPTIONAL
-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:
overalls -project=$PROJECT -debug -- -race -v
Will call go test -race -v under the hood in addition to the -coverprofile
commands.
Make a pull request.
If the changes being proposed or requested are breaking changes, please create an issue.
Distributed under MIT License, please see license file in code for more details.
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.