aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
1 files 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