mirror of
https://github.com/coredns/coredns.git
synced 2025-11-02 02:03:13 -05:00
Add time in coverage test (#951)
For profiling the time spent in Travis CI. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
2
Makefile
2
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; \
|
||||
|
||||
Reference in New Issue
Block a user