yq/scripts/coverage.sh
2020-01-09 08:17:56 +11:00

7 lines
170 B
Bash
Executable File

#!/bin/bash
set -e
go test -coverprofile=coverage.out -v $(go list ./... | grep -v -E 'examples' | grep -v -E 'test')
go tool cover -html=coverage.out -o coverage.html