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