blob: 3efa81ba5aea4e5ae8f24a50beaab0606c03d8cb [file] [log] [blame]
jrperrittc8f12c62016-10-11 11:29:10 -05001#!/bin/bash
jrperritt5cb543c2017-02-20 14:03:36 -06002
3set -e
4
jrperrittc8f12c62016-10-11 11:29:10 -05005n=1
6for testpkg in $(go list ./testing ./.../testing); do
7 covpkg="${testpkg/"/testing"/}"
8 go test -covermode count -coverprofile "testing_"$n.coverprofile -coverpkg $covpkg $testpkg 2>/dev/null
9 n=$((n+1))
10done
11gocovmerge `ls *.coverprofile` > cover.out
12rm *.coverprofile