mirror of
https://github.com/gomods/athens
synced 2026-02-09 03:38:10 +00:00
* The commit brings more clarity on how to run unut tests. The commit chages behaivour of `make test-unit` by adding sourcing of env vars. Documentation is updated to provide more clarity on how to run unit tests. * changed list of commands to run before unit tests * moved env vars to .env * removed dduplicated env var * returned conventional file name in script * link to DEVELOPMENT.md * fixed typo * moved env var export to script * removed export of tmp folder
10 lines
203 B
Bash
Executable File
10 lines
203 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# test_unit.sh
|
|
|
|
source cmd/proxy/.env
|
|
|
|
# Run the unit tests with the race detector and code coverage enabled
|
|
set -xeuo pipefail
|
|
go test -race -coverprofile cover.out -covermode atomic ./...
|