1
0
mirror of https://github.com/taigrr/shorturl synced 2025-01-18 04:03:16 -08:00

Fixed coverage collection

This commit is contained in:
2018-12-31 19:10:39 +10:00
parent 5b5c76551a
commit 58ecfd1841
2 changed files with 79 additions and 2 deletions

View File

@@ -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