Simplify run-all-tests script

pull/14/head
Vinícius Garcia 2022-03-15 21:01:14 -03:00
parent 1d396f8cac
commit eb46b454cb
1 changed files with 1 additions and 3 deletions

View File

@ -3,6 +3,4 @@
# Generate the coverate.txt file for all modules:
find . -name go.mod -execdir go test -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/vingarcia/ksql ./... \;
# Merge all coverage files:
echo 'mode: atomic' > coverage.txt
find . -name coverage.txt -exec cat partial-coverage.txt \; | grep -v 'mode: atomic' | sort >> coverage.txt
# codecov will find all `coverate.txt` files, so it will work fine.