Codebase list golang-github-weppos-publicsuffix-go / f1ccc437-ab2a-42d1-bc5b-5bf888cec8ab/upstream test.sh
f1ccc437-ab2a-42d1-bc5b-5bf888cec8ab/upstream

Tree @f1ccc437-ab2a-42d1-bc5b-5bf888cec8ab/upstream (Download .tar.gz)

test.sh @f1ccc437-ab2a-42d1-bc5b-5bf888cec8ab/upstreamraw · history · blame

#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
    go test -v -race -coverprofile=profile.out -covermode=atomic "$d"
    if [ -f profile.out ]; then
        cat profile.out >> coverage.txt
        rm profile.out
    fi
done