From f67f6ff0d870f375410a38bfadb8718864b953fd Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Wed, 6 Apr 2022 19:09:47 +0000 Subject: [PATCH] Run coverage as well --- Taskfile.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 08508ee..92e2fdc 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -65,7 +65,13 @@ tasks: desc: Run CI build cmds: - task: build-prod - - go test ./... + - task: cover + + cover: + desc: Run test and analyze coverage + cmds: + - go test ./... -coverprofile=coverage.out -covermode=atomic + - go tool cover -html=coverage.out -o=coverage.html frontend: desc: Build vue frontend