Skip to content

Commit

Permalink
Cover special packages for api module
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Xiao committed Jan 29, 2019
1 parent 134bf79 commit aadc90d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions alltest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ main() {
make clean
make -j6 bp miner observer

go test -tags "$UNITTESTTAGS" -race -failfast -parallel 16 -cpu 16 -coverprofile main.cover.out ./...
go test -tags "$UNITTESTTAGS" -race -failfast -parallel 16 -cpu 16 -coverprofile main.cover.out $(go list ./... | grep -v CovenantSQL/api)
go test -tags "$UNITTESTTAGS" -race -failfast -parallel 16 -cpu 16 -coverpkg ./api/...,./rpc/jsonrpc -coverprofile api.cover.out ./api/...

set -x
gocovmerge main.cover.out $(find cmd -name "*.cover.out") | grep -F -v '_gen.go' > coverage.txt && rm -f *.cover.out
gocovmerge main.cover.out api.cover.out $(find cmd -name "*.cover.out") | grep -F -v '_gen.go' > coverage.txt && rm -f *.cover.out
bash <(curl -s https://codecov.io/bash)

# some benchmarks
Expand Down

0 comments on commit aadc90d

Please sign in to comment.