add coverage script

pull/219/head
Minh Doan 6 years ago
parent 9827faf637
commit 13fbf3f1f7
  1. 3
      coverage.sh

@ -0,0 +1,3 @@
go test ./... -coverprofile=/tmp/coverage.out;
grep -v "harmony-one/harmony/core" /tmp/coverage.out | grep -v "harmony-one/harmony/internal/trie" | grep -v "harmony-one/harmony/internal/db" | grep -v "harmony-one/harmony/log" > /tmp/coverage1.out
go tool cover -func=/tmp/coverage1.out
Loading…
Cancel
Save