diff options
Diffstat (limited to 'scripts/coverage')
-rwxr-xr-x | scripts/coverage | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/coverage b/scripts/coverage new file mode 100755 index 0000000..c52d4a6 --- /dev/null +++ b/scripts/coverage @@ -0,0 +1,8 @@ +#!/bin/bash +mkdir -p target/ +go test ./... -coverprofile=target/coverage.out +if [ ! -z $1 ]; then + go tool cover -html=coverage.out -o $1 +else + go tool cover -html=coverage.out +fi |