fix(coverage): use go list instead of godir

Signed-off-by: Matthew Fisher <matt.fisher@microsoft.com>
This commit is contained in:
Matthew Fisher
2019-10-22 13:55:14 -07:00
parent b048f8914b
commit 630134a904

View File

@@ -22,11 +22,10 @@ profile="${coverdir}/cover.out"
pushd /
hash goveralls 2>/dev/null || go get github.com/mattn/goveralls
hash godir 2>/dev/null || go get github.com/Masterminds/godir
popd
generate_cover_data() {
for d in $(godir) ; do
for d in $(go list ./...) ; do
(
local output="${coverdir}/${d//\//-}.cover"
go test -coverprofile="${output}" -covermode="$covermode" "$d"