Skip to content

Commit

Permalink
Refactor swipe manager test parallel safe
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuflatland-lf committed Aug 22, 2024
1 parent 8b586a4 commit b6f9dbf
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 343 deletions.
9 changes: 8 additions & 1 deletion backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,18 @@ fmt: ## Format code
go fmt ./...; \
printf "${GREEN} Code formatted.\n\n"; \

.PHONY: test-ci
test: ## Run tests for CI
printf "${GREEN}Run all tests\n\n${WHITE}"; \
go clean -cache -testcache -i -r; \
go test -cover -race -json -v ./... ; \
printf "${GREEN}Done\n"; \

.PHONY: test
test: ## Run tests
printf "${GREEN}Run all tests\n\n${WHITE}"; \
go clean -cache -testcache -i -r; \
go test -cover -race -json -v ./... ; \
go test -race -v ./... ; \
printf "${GREEN}Done\n"; \

# Directories to exclude from coverage (use | to separate multiple directories)
Expand Down
Loading

0 comments on commit b6f9dbf

Please sign in to comment.