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