diff options
| author | Shulhan <ms@kilabit.info> | 2024-02-04 16:11:14 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-02-04 16:11:21 +0700 |
| commit | 4fefec82bb1ee34350cfc4dd61140c2f1ce8afb0 (patch) | |
| tree | a3a5c645b406792b61d3931ec17cddf0f2556e79 /Makefile | |
| parent | 6535043e55fa510bde5b66085d4b88326004faee (diff) | |
| download | gorankusu-4fefec82bb1ee34350cfc4dd61140c2f1ce8afb0.tar.xz | |
make: generate test coverage
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: |
