aboutsummaryrefslogtreecommitdiff
path: root/scripts/coverage
blob: c52d4a61b1e42490465861220a2fc24cfed3c46e (plain)
1
2
3
4
5
6
7
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