test: use covermode count for test performance

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2017-02-25 14:43:33 +01:00
parent 77c352daf6
commit a6936c7dec
2 changed files with 2 additions and 2 deletions

View File

@ -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 ; \

View File

@ -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