gocovercache

command module
v0.0.0-...-5d7e252 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2016 License: MIT Imports: 13 Imported by: 0

README

gocovercache

coverage report cache for golang

Why?

go1.5 build takes longer time than go1.4. see https://golang.org/doc/go1.5#performance

Installation

go get github.com/azihsoyn/gocovercache

Ussge

Usage of gocovercache:
  -coverprofile string
        coverage report file (default "profile.cov")
  -outdir string
        cache directory (default ".cache")
  -parallel int
        parallel number (default cpus)
  -v    verbose output

For CircleCI

machine:
  pre:
  - mkdir -p /home/ubuntu/cache

dependencies:
  cache_directories:
    - /home/ubuntu/cache
  post:
    # to cache report you should test at dependencies:post: phase
    # see https://discuss.circleci.com/t/overriding-go-inference-in-the-dependencies-phase/660
    - go get github.com/mattn/goveralls
    - go get golang.org/x/tools/cmd/cover
    - go get github.com/azihsoyn/gocovercache
    - gocovercache -outdir=/home/ubuntu/cache -coverprofile=profile.cov
    - goveralls -coverprofile=profile.cov -service=circle-ci -repotoken $COVERALLS_TOKEN

test:
  override:
    - go vet ./...
    # if you need detect race condition
    - go test -race ./...

ToDO

  • test! test! test!
  • refactor
  • support specific pkgs

Not ToDo

  • support -race option # too cost

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL