diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,9 @@ ## SPDX-FileCopyrightText: 2021 M. Shulhan <ms@kilabit.info> ## SPDX-License-Identifier: GPL-3.0-or-later +COVER_OUT:=cover.out +COVER_HTML:=cover.html + .PHONY: all all: lint test go run ./internal/cmd/trunks build @@ -17,7 +20,8 @@ lint-www: .PHONY: test test: - CGO_ENABLED=1 go test -v -race ./... + CGO_ENABLED=1 go test -failfast -timeout=1m -race -coverprofile=$(COVER_OUT) ./... + go tool cover -html=$(COVER_OUT) -o $(COVER_HTML) .PHONY: dev dev: |
