Files
athens/scripts/test_unit.sh
Arthur Mello e5ce3f7c6e Set a default value for ATHENS_MONGO_CONNECTION_STRING env var (#580)
* Set a default value for ATHENS_MONGO_CONNECTION_STRING env var

- ATHENS_MONGO_CONNECTION_STRING will default to mongodb://127.0.0.1:27017 if not set

* Fix Get function call

* Update user of env.MongoConnectionString
2018-08-28 11:56:15 +02:00

12 lines
235 B
Bash
Executable File

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