From ee14993f7d3c6d9773165d8d3097f3de7012238b Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Sat, 19 Aug 2017 12:02:43 -0700 Subject: [PATCH] Add `time` in coverage test (#951) For profiling the time spent in Travis CI. Signed-off-by: Yong Tang --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d72b4e0d..a2eff16eb 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,7 @@ ifeq ($(TEST_TYPE),middleware) endif ifeq ($(TEST_TYPE),coverage) for d in `go list ./... | grep -v vendor`; do \ - go test -v -tags 'etcd k8s' -coverprofile=cover.out -covermode=atomic $$d || exit 1; \ + time go test -v -tags 'etcd k8s' -coverprofile=cover.out -covermode=atomic $$d || exit 1; \ if [ -f cover.out ]; then \ cat cover.out >> coverage.txt; \ rm cover.out; \