From 63a578688e9e3b930f99db423067fd08b1a4b08b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Sat, 16 Mar 2024 12:12:31 +0100 Subject: [PATCH] Make `make test` fail fast Pass `-failfast` to the `go test` command, so that it immediately stops on test failure. This prevents the need to scroll back to see the actual error, at the expense of only seeing one failure at a time. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1dc4efdf..2e204677 100644 --- a/Makefile +++ b/Makefile @@ -240,7 +240,7 @@ swagger-ui: test: # Ensure the web-static directory exists, so that `web/web_app.go` can embed something. mkdir -p ${WEB_STATIC} - go test -short ./... + go test -short -failfast ./... clean: @go clean -i -x