mirror of
https://github.com/taigrr/shorturl
synced 2025-01-18 04:03:16 -08:00
Fixed coverage collection
This commit is contained in:
10
Makefile
10
Makefile
@@ -27,8 +27,14 @@ image:
|
||||
@docker build --build-arg TAG=$(TAG) --build-arg BUILD=$(BUILD) -t $(REPO):$(TAG) .
|
||||
@echo "Image created: $(REPO):$(TAG)"
|
||||
|
||||
profile:
|
||||
@go test -cpuprofile cpu.prof -memprofile mem.prof -v -bench .
|
||||
|
||||
bench:
|
||||
@go test -v -bench .
|
||||
|
||||
test:
|
||||
@go test -v -cover -race $(TEST_ARGS)
|
||||
@go test -v -race -cover -coverprofile=coverage.txt -covermode=atomic .
|
||||
|
||||
clean:
|
||||
@rm -rf $(APP)
|
||||
@git clean -f -d -X
|
||||
|
||||
Reference in New Issue
Block a user