mirror of
https://github.com/prymitive/karma
synced 2026-08-28 11:17:28 +00:00
fix(tests): replace gocovmerge with a simple bash script
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
set -o errexit
|
||||
set -o pipefail
|
||||
|
||||
gocovmerge profile.* | grep -vE '^github.com/prymitive/karma/cmd/karma/bindata_assetfs.go:' > coverage.txt
|
||||
echo "mode: set" > coverage.txt
|
||||
cat profile.* \
|
||||
| grep -v mode: \
|
||||
| grep -vE '^github.com/prymitive/karma/cmd/karma/bindata_assetfs.go:' \
|
||||
| sort -r \
|
||||
| awk '{if($1 != last) {print $0;last=$1}}' >> coverage.txt
|
||||
rm -f profile.*
|
||||
|
||||
go tool cover -func coverage.txt | tail -n 1 | awk '{print $3}'
|
||||
|
||||
Reference in New Issue
Block a user