Skip to content

Commit

Permalink
Add Skip Coverage Condition in Coverage.sh (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Aug 19, 2018
1 parent 0982442 commit 72a5dd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions coverage.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#!/usr/bin/env bash

declare -a skip_coverage=("github.com/prysmaticlabs/prysm/contracts/sharding-manager-contract"
"github.com/prysmaticlabs/prysm/contracts/validator-registration-contract")

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
if [[ ${skip_coverage[*]} =~ "$d" ]]; then
continue
fi
go test -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
Expand Down

0 comments on commit 72a5dd1

Please sign in to comment.