test_all.sh 373 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. set -e
  3. echo "" > coverage.txt
  4. for d in $(go list ./... | grep -v vendor); do
  5. echo -e "TESTS FOR: for \033[0;35m${d}\033[0m"
  6. go test -race -v -coverprofile=profile.coverage.out -covermode=atomic $d
  7. if [ -f profile.coverage.out ]; then
  8. cat profile.coverage.out >> coverage.txt
  9. rm profile.coverage.out
  10. fi
  11. echo ""
  12. done