mirror of https://github.com/dtm-labs/dtm.git
csharpjavadistributed-transactionsdtmgogolangmicroservicenodejsphpdatabasesagaseatatcctransactiontransactionsxapythondistributed
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
1003 B
15 lines
1003 B
set -x
|
|
export DTM_DEBUG=1
|
|
echo "mode: count" > coverage.txt
|
|
for store in redis boltdb mysql postgres; do
|
|
TEST_STORE=$store go test -failfast -covermode count -coverprofile=profile.out -coverpkg=github.com/dtm-labs/dtm/client/dtmcli,github.com/dtm-labs/dtm/client/dtmcli/dtmimp,github.com/dtm-labs/logger,github.com/dtm-labs/dtm/client/dtmgrpc,github.com/dtm-labs/dtm/client/workflow,github.com/dtm-labs/dtm/client/dtmgrpc/dtmgimp,github.com/dtm-labs/dtm/dtmsvr,dtmsvr/config,github.com/dtm-labs/dtm/dtmsvr/storage,github.com/dtm-labs/dtm/dtmsvr/storage/boltdb,github.com/dtm-labs/dtm/dtmsvr/storage/redis,github.com/dtm-labs/dtm/dtmsvr/storage/registry,github.com/dtm-labs/dtm/dtmsvr/storage/sql,github.com/dtm-labs/dtm/dtmutil -gcflags=-l ./... || exit 1
|
|
echo "TEST_STORE=$store finished"
|
|
if [ -f profile.out ]; then
|
|
cat profile.out | grep -v 'mode:' >> coverage.txt
|
|
echo > profile.out
|
|
fi
|
|
done
|
|
|
|
# go tool cover -html=coverage.txt
|
|
|
|
# curl -s https://codecov.io/bash | bash
|
|
|