From 041f114958746a29121ec9e8b0672ca8a9a701d1 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 22 Feb 2022 19:57:26 -0500 Subject: Makefile: add testall and testalljson, update test and testjson to use -short --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ebc6afc..6af89c8 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,20 @@ all: go build -tags='sqlite_fts5 sqlite_json' -ldflags='-s -w' -# run all tests +# run all tests except long ones test: + go test -short -tags='sqlite_fts5 sqlite_json' -cover ./... + +# run all tests except long ones, print result to stdout as json +testjson: + go test -short -tags='sqlite_fts5 sqlite_json' -json -cover ./... + +# run all tests, including long ones +testall: go test -tags='sqlite_fts5 sqlite_json' -cover ./... # run all tests, print result to stdout as json -testjson: +testalljson: go test -tags='sqlite_fts5 sqlite_json' -json -cover ./... # run go vet -- cgit v1.2.3