Home

Awesome

octocov-go-test-bench

CI Coverage Code to Test Ratio Test Execution Time

Generate octocov custom metrics JSON from the output of go test -bench.

Usage

$ go test -bench . -benchmem | octocov-go-test-bench

Install

go install:

$ go install github.com/k1LoW/octocov-go-test-bench/cmd/octocov-go-test-bench@latest

deb:

$ export OCTOCOV_GO_TEST_BENCH_VERSION=X.X.X
$ curl -o octocov-go-test-bench.deb -L https://github.com/k1LoW/octocov-go-test-bench/releases/download/v$OCTOCOV_GO_TEST_BENCH_VERSION/octocov-go-test-bench_$OCTOCOV_GO_TEST_BENCH_VERSION-1_amd64.deb
$ dpkg -i octocov-go-test-bench.deb

RPM:

$ export OCTOCOV_GO_TEST_BENCH_VERSION=X.X.X
$ yum install https://github.com/k1LoW/octocov-go-test-bench/releases/download/v$OCTOCOV_GO_TEST_BENCH_VERSION/octocov-go-test-bench_$OCTOCOV_GO_TEST_BENCH_VERSION-1_amd64.rpm

apk:

$ export OCTOCOV_GO_TEST_BENCH_VERSION=X.X.X
$ curl -o octocov-go-test-bench.apk -L https://github.com/k1LoW/octocov-go-test-bench/releases/download/v$OCTOCOV_GO_TEST_BENCH_VERSION/octocov-go-test-bench_$OCTOCOV_GO_TEST_BENCH_VERSION-1_amd64.apk
$ apk add octocov-go-test-bench.apk

homebrew tap:

$ brew install k1LoW/tap/octocov-go-test-bench

manually:

Download binary from releases page