aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2022-02-05 03:03:17 -0500
committerPaul Duncan <pabs@pablotron.org>2022-02-05 03:03:17 -0500
commit3dd8e3b14cce7d46779b497ea7a08581cf7663fb (patch)
tree4dd21b9b1af25d963e525538f59c1b5ce6ef17eb
parent22fd269069b8e47bc40fbd8681243bdd4bd61a47 (diff)
downloadcvez-3dd8e3b14cce7d46779b497ea7a08581cf7663fb.tar.bz2
cvez-3dd8e3b14cce7d46779b497ea7a08581cf7663fb.zip
Makefile: add sqlite_json to cov targets
-rw-r--r--Makefile6
1 files 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