From a6936c7dec5a28c5a6aa22a2b6a2f2cfe88284cd Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 25 Feb 2017 14:43:33 +0100 Subject: [PATCH] test: use covermode count for test performance Signed-off-by: deadprogram --- Makefile | 2 +- ci/travis.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ec78c9a6..7b4c61df 100644 --- a/Makefile +++ b/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 ; \ diff --git a/ci/travis.sh b/ci/travis.sh index 0facdf78..ceb2e49a 100755 --- a/ci/travis.sh +++ b/ci/travis.sh @@ -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