-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 814 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
include .env
export $(shell sed 's/=.*//' .env)
export ROOTDIR=$(shell pwd)
TEST_RUN ?= .
GOFLAGS ?= "-count=1"
run:
@go run cmd/main.go
pb-regen:
${HOME}/Apps/schemas/generate.sh ${HOME}/Apps/schemas/blogs ${ROOTDIR}/internal/pb
cleanTest:
@go clean -testcache
test:
@$(MAKE) cleanTest && go test -v ./tests/authorHelperTest/... -run ${TEST_RUN}
@$(MAKE) cleanTest && go test -v ./tests/storeTest/... -run ${TEST_RUN}
@$(MAKE) cleanTest && go test -v ./tests/storageTest/... -run ${TEST_RUN}
@$(MAKE) cleanTest && go test -v ./tests/utilsTest/... -run ${TEST_RUN}
grpcTest:
@$(MAKE) cleanTest && go test -v ./tests/grpcTest/... -run ${TEST_RUN}
gqlTest:
@$(MAKE) cleanTest && go test -v ./tests/gqlTest/... -run ${TEST_RUN}
allTest:
@${MAKE} cleanTest && go test -v ./tests/... -run ${TEST_RUN}