File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 1
1
.DS_Store
2
2
example /daemon /daemon
3
3
coverage.out
4
- coverage.tmp
4
+ coverage.html
Original file line number Diff line number Diff line change @@ -14,10 +14,20 @@ format: ## Formats all Go code
14
14
lint : # # Runs golangci-lint on source files
15
15
golangci-lint run
16
16
17
+ .PHONY : coverage.out
18
+ coverage.out : $(wildcard go.* ) $(wildcard ** /* .go)
19
+ go test -race -covermode=atomic -coverprofile=$@ ./...
20
+
21
+ coverage.html : coverage.out
22
+ go tool cover -html $< -o $@
23
+
17
24
.PHONY : test
18
- test : # # Run all Go tests (excluding integration tests)
19
- go test -race -covermode=atomic -coverprofile=coverage.out ./...
25
+ test : coverage.out # # Run all Go tests (excluding integration tests)
20
26
21
27
.PHONY : integration
22
28
integration : # # Run Go tests (integration tests only)
23
29
go test -race -tags=integration -covermode=atomic -coverprofile=coverage.out ./...
30
+
31
+ .PHONY : clean
32
+ clean :
33
+ rm -rf coverage.*
You can’t perform that action at this time.
0 commit comments