Skip to content

Commit

Permalink
ci: Fix coverage for MKVS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kostko committed Aug 13, 2019
1 parent 84145c7 commit 56f73c9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .buildkite/go/test_and_coverage_ekiden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ export EKIDEN_TEST_WORKER_HOST_RUNTIME_BINARY=$(pwd)/target/debug/simple-keyvalu
######################
pushd go
make generate
env -u GOPATH go test -race -coverprofile=coverage.txt -covermode=atomic -v `go list ./... | grep -v github.com/oasislabs/ekiden/go/ekiden`
# We need to do multiple test passes for different parts to get correct coverage.
env -u GOPATH go test -race -coverprofile=coverage.txt -covermode=atomic -v \
$(go list ./... | \
grep -v github.com/oasislabs/ekiden/go/ekiden | \
grep -v github.com/oasislabs/ekiden/go/storage/mkvs/urkel )
# Ekiden node tests.
pushd ekiden
env -u GOPATH go test -race -coverpkg ../... -coverprofile=coverage.txt -covermode=atomic -v
popd
# Urkel tree tests.
pushd storage/mkvs/urkel
env -u GOPATH go test -race -coverpkg ./... -coverprofile=coverage.txt -covermode=atomic -v
popd
popd

############################
Expand Down

0 comments on commit 56f73c9

Please sign in to comment.