1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-27 14:34:39 +01:00
liquid/scripts/coverage

13 lines
324 B
Plaintext
Raw Normal View History

2017-07-02 13:51:24 +02:00
#!/usr/bin/env bash
set -e
echo 'mode: set' > coverage.out
for p in $(go list -f '{{.ImportPath}}' ./...); do
rm -f package-coverage.out
go test -coverprofile=package-coverage.out $p
[[ -f package-coverage.out ]] && grep -v 'mode: set' package-coverage.out >> coverage.out
rm -f package-coverage.out
done