diff --git a/go-code-coverage.sh b/go-code-coverage.sh new file mode 100755 index 00000000..76b483b1 --- /dev/null +++ b/go-code-coverage.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +cd src +go test -coverprofile=/tmp/coverage.out +echo +echo "Test summary" +go tool cover -func=/tmp/coverage.out +echo +go tool cover -html=/tmp/coverage.out