Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-03-22 21:33:44 +0300
committerNick Thomas <nick@gitlab.com>2018-03-23 20:36:55 +0300
commit97642f739578111172355deaae46315a2626f5ae (patch)
treeeabe0dab3bfb364d07eef997d9e7060b242dcecd /Makefile.util.mk
parent1d2583bfeaa82cf36f2502bb9406decbce987f71 (diff)
Ignore the acceptance tests for coverage purposes
Diffstat (limited to 'Makefile.util.mk')
-rw-r--r--Makefile.util.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.util.mk b/Makefile.util.mk
index ece6e3bb..276d56ea 100644
--- a/Makefile.util.mk
+++ b/Makefile.util.mk
@@ -14,7 +14,6 @@ lint: bin/golint
complexity: .GOPATH/.ok bin/gocyclo
$Q ./bin/gocyclo -over 9 $(allfiles)
-
test: .GOPATH/.ok gitlab-pages
go test $(if $V,-v) $(allpackages)
@@ -30,7 +29,9 @@ cover: bin/gocovmerge .GOPATH/.ok
$Q rm -f .GOPATH/cover/*.out .GOPATH/cover/all.merged
$(if $V,@echo "-- go test -coverpkg=./... -coverprofile=.GOPATH/cover/... ./...")
@for MOD in $(allpackages); do \
- go test -coverpkg=`echo $(allpackages)|tr " " ","` \
+ go test \
+ -short \
+ -coverpkg=`echo $(allpackages)|tr " " ","` \
-coverprofile=.GOPATH/cover/unit-`echo $$MOD|tr "/" "_"`.out \
$$MOD 2>&1 | grep -v "no packages being tested depend on"; \
done