Files
Mark Jung a4cf4eb991 removed flag from test command (#1257)
fixes make test-unit by removing an outdated flag from the test command
2019-05-29 22:52:00 -04:00

22 lines
465 B
Bash
Executable File

#!/bin/bash
# test_unit.sh
if [ -z ${GO_ENV} ]; then
export GO_ENV="test"
fi
if [ -z ${ATHENS_MINIO_ENDPOINT} ]; then
export ATHENS_MINIO_ENDPOINT="127.0.0.1:9001"
fi
if [ -z ${ATHENS_MONGO_STORAGE_URL} ]; then
export ATHENS_MONGO_STORAGE_URL="mongodb://127.0.0.1:27017"
fi
export GO111MODULE=on
# Run the unit tests with the race detector and code coverage enabled
set -xeuo pipefail
go test -race -coverprofile cover.out -covermode atomic ./...