tile38/scripts/test.sh

16 lines
358 B
Bash
Raw Normal View History

#!/bin/bash
set -e
cd $(dirname "${BASH_SOURCE[0]}")/..
2019-11-18 20:56:41 +03:00
export CGO_ENABLED=0
2022-09-23 17:30:03 +03:00
cd tests
go test -coverpkg=../internal/server -coverprofile=/tmp/coverage.out
go tool cover -html=/tmp/coverage.out -o /tmp/coverage.html
echo "details: file:///tmp/coverage.html"
cd ..
# go test -coverpkg=internal/ \
# $(go list ./... | grep -v /vendor/ | grep -v /tests)