All Projects → codecov → Example Go

codecov / Example Go

Go coverage example

Programming Languages

go
31211 projects - #10 most used programming language

Labels

Projects that are alternatives of or similar to Example Go

Bashcov
Code coverage tool for Bash
Stars: ✭ 113 (-30.67%)
Mutual labels:  coverage
Typescript Coverage Report
Node command tool to generate TypeScript coverage report
Stars: ✭ 138 (-15.34%)
Mutual labels:  coverage
Single cov
Actionable code coverage.
Stars: ✭ 154 (-5.52%)
Mutual labels:  coverage
Sbt Jacoco
JaCoCo Code Coverage plug-in for sbt.
Stars: ✭ 115 (-29.45%)
Mutual labels:  coverage
Example Cpp11 Cmake
Stars: ✭ 129 (-20.86%)
Mutual labels:  coverage
Mutant
Automated code reviews via mutation testing - semantic code coverage.
Stars: ✭ 1,794 (+1000.61%)
Mutual labels:  coverage
Infection
PHP Mutation Testing library
Stars: ✭ 1,575 (+866.26%)
Mutual labels:  coverage
Coveragechecker
Allows old code to use new standards
Stars: ✭ 159 (-2.45%)
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
Jacoco Plugin
Jenkins JaCoCo Plugin
Stars: ✭ 119 (-26.99%)
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
Coveralls Ruby
Coveralls for Ruby
Stars: ✭ 115 (-29.45%)
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
Sonar Flutter
SonarQube plugin for Flutter / Dart
Stars: ✭ 138 (-15.34%)
Mutual labels:  coverage
Codecov Python
Python report uploader for Codecov
Stars: ✭ 162 (-0.61%)
Mutual labels:  coverage
Covered
Stars: ✭ 158 (-3.07%)
Mutual labels:  coverage
Gradle Pitest Plugin
Gradle plugin for PIT Mutation Testing
Stars: ✭ 144 (-11.66%)
Mutual labels:  coverage

Codecov Go Example

codecov Build Status FOSSA Status

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)

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)

Reference http://stackoverflow.com/a/21142256/2055281

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

FOSSA Status

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].