File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ GOINSTALL := GO111MODULE=on go install -v
18
18
GOTEST := GO111MODULE=on go test
19
19
20
20
GOLIST := go list -deps $(PKG ) /... | grep '$(PKG ) '
21
+ GOLIST_IT := go list -tags=integration_test -deps $(PKG ) /... | grep '$(PKG ) '
21
22
GOLIST_COVER := $$(go list -deps $(PKG ) /... | grep '$(PKG ) ' )
22
23
GOFILES_NOVENDOR = $(shell find . -type f -name '* .go' -not -path "./vendor/* ")
23
24
91
92
@$(call print, "Running unit tests.")
92
93
$(GOLIST ) | $(XARGS ) env $(GOTEST ) -test.timeout=20m
93
94
95
+ # ? integration: Run all integration tests (Docker needed for Postgres)
96
+ integration :
97
+ @$(call print, "Running integration tests (Postgres + SQLite) ." )
98
+ $(GOLIST_IT ) | $(XARGS ) env $(GOTEST ) -tags=integration_test -test.timeout=30m
99
+
94
100
# ? unit-cover: Run unit coverage tests
95
101
unit-cover : $(GOACC_BIN )
96
102
@$(call print, "Running unit coverage tests.")
You can’t perform that action at this time.
0 commit comments