From 3dd8e3b14cce7d46779b497ea7a08581cf7663fb Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 5 Feb 2022 03:03:17 -0500 Subject: Makefile: add sqlite_json to cov targets --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ffb4a4d..ebc6afc 100644 --- a/Makefile +++ b/Makefile @@ -10,7 +10,7 @@ test: # run all tests, print result to stdout as json testjson: - go test -json -cover ./... + go test -tags='sqlite_fts5 sqlite_json' -json -cover ./... # run go vet vet: @@ -22,13 +22,13 @@ vetjson: # generate test coverage profile, print results to stdout cov: - go test -coverprofile=coverage.out ./... && \ + go test -tags='sqlite_fts5 sqlite_json' -coverprofile=coverage.out ./... && \ go tool cover -func=coverage.out # generate test coverage profile, render results as html, show # in browser covhtml: - go test -coverprofile=coverage.out ./... && \ + go test -tags='sqlite_fts5 sqlite_json' -coverprofile=coverage.out ./... && \ go tool cover -html=coverage.out -o coverage.html && \ xdg-open ./coverage.html -- cgit v1.2.3