test: use covermode count for test performance
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
77c352daf6
commit
a6936c7dec
2
Makefile
2
Makefile
|
@ -11,7 +11,7 @@ cover:
|
|||
echo "" > profile.cov
|
||||
go test -i ./...
|
||||
for package in $(PACKAGES) ; do \
|
||||
go test -covermode=atomic -coverprofile=tmp.cov gobot.io/x/$$package ; \
|
||||
go test -covermode=count -coverprofile=tmp.cov gobot.io/x/$$package ; \
|
||||
cat tmp.cov >> profile.cov ; \
|
||||
rm tmp.cov ; \
|
||||
done ; \
|
||||
|
|
|
@ -7,7 +7,7 @@ go test -i ./...
|
|||
|
||||
for package in "${PACKAGES[@]}"
|
||||
do
|
||||
go test -covermode=atomic -coverprofile=tmp.cov gobot.io/x/$package
|
||||
go test -covermode=count -coverprofile=tmp.cov gobot.io/x/$package
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
EXITCODE=1
|
||||
|
|
Loading…
Reference in New Issue