tendermint/test.sh

16 lines
346 B
Bash
Raw Normal View History

2017-10-24 12:30:05 -07:00
#!/usr/bin/env bash
set -e
2017-11-28 19:05:20 -08:00
# run the linter
make metalinter_test
# run the unit tests with coverage
echo "" > coverage.txt
2017-10-24 12:30:05 -07:00
for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic "$d"
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done