Codebase list golang-github-weppos-publicsuffix-go / c458e34c-5e25-4832-91c0-6f16b6d7593b/main test.sh
c458e34c-5e25-4832-91c0-6f16b6d7593b/main

Tree @c458e34c-5e25-4832-91c0-6f16b6d7593b/main (Download .tar.gz)

test.sh @c458e34c-5e25-4832-91c0-6f16b6d7593b/mainraw · 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