codecov / Example Go
Go coverage example
Stars: ✭ 163
Programming Languages
go
31211 projects - #10 most used programming language
Labels
Projects that are alternatives of or similar to Example Go
Typescript Coverage Report
Node command tool to generate TypeScript coverage report
Stars: ✭ 138 (-15.34%)
Mutual labels: coverage
Mutant
Automated code reviews via mutation testing - semantic code coverage.
Stars: ✭ 1,794 (+1000.61%)
Mutual labels: coverage
Lcov To Cobertura Xml
Converts lcov output to Cobertura-compatible XML for CI
Stars: ✭ 131 (-19.63%)
Mutual labels: coverage
Moderncppstarter
🚀 Kick-start your C++! A template for modern C++ projects using CMake, CI, code coverage, clang-format, reproducible dependency management and much more.
Stars: ✭ 2,381 (+1360.74%)
Mutual labels: coverage
Openpojo
POJO Testing & Identity Management Made Trivial
Stars: ✭ 122 (-25.15%)
Mutual labels: coverage
Osvvm
OSVVM Utility Library: AlertLogPkg, CoveragePkg, RandomPkg, ScoreboardGenericPkg, MemoryPkg, TbUtilPkg, TranscriptPkg, ...
Stars: ✭ 140 (-14.11%)
Mutual labels: coverage
D.s.a Leet
References and summary for leetcode high-frequency algorithm problems
Stars: ✭ 155 (-4.91%)
Mutual labels: coverage
Teaspoon
Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
Stars: ✭ 1,443 (+785.28%)
Mutual labels: coverage
Gradle Pitest Plugin
Gradle plugin for PIT Mutation Testing
Stars: ✭ 144 (-11.66%)
Mutual labels: coverage
Codecov Go Example
Note: use
-covermode=atomic
or-covermode=count
to show how many times a statement was executed.
Builld
Travis Setup
Add to your .travis.yml
file.
language: go
go:
- 1.8.x
- tip
before_install:
- go get -t -v ./...
script:
- go test -race -coverprofile=coverage.txt -covermode=atomic
after_success:
- bash <(curl -s https://codecov.io/bash)
- All other CI you can simply run
bash <(curl -s https://codecov.io/bash)
.-race
is a suggestion, not required. Learn more at https://blog.golang.org/race-detector
Multiple files
If you see this
cannot use test profile flag with multiple packages
then use this shell template to execute your tests and store coverage output
#!/usr/bin/env bash
set -e
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
Then run this file as your test (ex. ./test.sh
)
Caveats
Private Repo
Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending -t <your upload token>
to you where you upload reports.
Links
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].