Files
databunker/go-code-coverage.sh
2024-08-18 22:40:23 +03:00

10 lines
166 B
Bash
Executable File

#!/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