aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-15 14:44:01 +0700
committerShulhan <ms@kilabit.info>2026-01-15 14:44:01 +0700
commitdd4d5695064c37ebb479ee833d88c666bf8897c5 (patch)
treea859914c89ed79702134adf8dcc5ccb38f827e38
parent9be132113a261309f73aaddbb83af898a88db385 (diff)
downloadspdxconv-dd4d5695064c37ebb479ee833d88c666bf8897c5.tar.xz
Makefile: add flag -failfast and -timeout to go test command
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 03ae6b3..71d2343 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,9 @@ lint:
.PHONY: test
test:
- CGO_ENABLED=1 go test -race -coverprofile=cover.out ./...
+ CGO_ENABLED=1 go test -coverprofile=cover.out -failfast -race \
+ -timeout=1m \
+ ./...
go tool cover -html=cover.out -o cover.html
.PHONY: pre-push