Counting main package in tests
This commit is contained in:
parent
779dabed9c
commit
13b2f9111d
2
tests.sh
2
tests.sh
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
pwd
|
pwd
|
||||||
go test -coverprofile=cover.out -v .
|
go test -coverprofile=main.cover.out -v .
|
||||||
go test -coverprofile=utils.cover.out -v ./utils
|
go test -coverprofile=utils.cover.out -v ./utils
|
||||||
echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
|
echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
|
||||||
awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
|
awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
|
||||||
|
|
Loading…
Reference in New Issue