Skip to content

Commit

Permalink
Delete cover.out.tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed Jan 10, 2024
1 parent ace5c12 commit e93895d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ build: ## Build binary
env GO111MODULE=on GOOS=$(GOOS) GOARCH=$(GOARCH) $(GO_BUILD) $(GO_LDFLAGS) -o $(CFN) cmd/cfn/main.go

clean: ## Clean project
-rm -rf $(S3HUB) $(SPARE) $(CFN) cover.out cover.html
-rm -rf $(S3HUB) $(SPARE) $(CFN) cover.out cover.html cover.out.tmp

test: ## Start unit test
env GOOS=$(GOOS) $(GO_TEST) -coverpkg=./... -coverprofile=cover.out.tmp -cover ./...
cat cover.out.tmp | grep -v "_gen.go" | grep -v "main.go" > cover.out
rm cover.out.tmp
$(GO_TOOL) cover -html=cover.out -o cover.html

coverage-tree: test ## Generate coverage tree
Expand Down

0 comments on commit e93895d

Please sign in to comment.