From 546139492b121b153ced1a561ead7efabbfd9cad Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sat, 18 Jan 2020 14:41:17 +0100 Subject: [PATCH] fix(Makefile): step to generate html coverage site --- .gitignore | 3 +++ Makefile | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 15251ed..3038634 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ flucky.tar.xz # directories .vscode/ + +# coverage files +coverage* \ No newline at end of file diff --git a/Makefile b/Makefile index c7a517a..f845d29 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,10 @@ test/goldenfiles/bindata.go: # ============================================================================== PHONY+=test/unit test/unit: clean bindata - go test -v ./... + go test -coverprofile coverage.html -v ./... + +test/cover-html: test/unit + go tool cover -html coverage.html # PACKAGES # ==============================================================================