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 # ==============================================================================