You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
273 B

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