Skip to content

Commit 0745fd0

Browse files
committed
makefile: add test-no-cover target
There's a bug in Go cover that causes the line numbers to get rewritten (golang/go#6329), so in order to debug runtime panics we'd need a way to run the tests without the coverage tool and get the right line number for where the panic happens.
1 parent cd267e4 commit 0745fd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ test: build fmtpolice test-deps coverage.html
5050
test-deps:
5151
$(GO) test -i $(GOBUILD_LDFLAGS) $(PACKAGE) $(SUBPACKAGES)
5252

53+
.PHONY: test-no-cover
54+
test-no-cover:
55+
$(GO) test $(GOBUILD_LDFLAGS) $(PACKAGE) $(SUBPACKAGES)
56+
5357
.PHONY: test-race
5458
test-race:
5559
$(GO) test -race $(GOBUILD_LDFLAGS) $(PACKAGE) $(SUBPACKAGES)

0 commit comments

Comments
 (0)