blob: f4e7c0b2c945a7552f9133ddf210301f5d39d55b [file] [log] [blame]
Matthias Andreas Benkard832a54e2019-01-29 09:27:38 +01001#!/usr/bin/env bash
2
3set -e
4echo "" > coverage.txt
5
6for d in $(go list ./... | grep -v vendor); do
7 go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d
8 if [ -f profile.out ]; then
9 cat profile.out >> coverage.txt
10 rm profile.out
11 fi
12done