Skip to content

Instantly share code, notes, and snippets.

@skriticos
Created January 6, 2014 15:49
Show Gist options
  • Save skriticos/8284765 to your computer and use it in GitHub Desktop.
Save skriticos/8284765 to your computer and use it in GitHub Desktop.
quick generic go coverage script (terminal function percentage and browser details)
#! /bin/bash
go test -coverprofile=coverage.out; go tool cover -func=coverage.out; go tool cover -html=coverage.out; rm coverage.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment