nginx-proxy-manager/backend/scripts/test.sh
Jamie Curnow 9faa36315f
More unit tests and html coverage report
also fixes a limit bug on listquery
2023-07-27 12:38:35 +10:00

8 lines
250 B
Bash
Executable File

#!/bin/bash -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
go test -json -cover -coverprofile="$DIR/../coverage.out" ./internal/... | tparse
go tool cover -html="$DIR/../coverage.out" -o "$DIR/../coverage.html"
rm -f "$DIR/../coverage.out"