Skip to content

Commit

Permalink
go:test:cover task
Browse files Browse the repository at this point in the history
Signed-off-by: Sarah Funkhouser <[email protected]>
  • Loading branch information
golanglemonade committed Sep 4, 2024
1 parent 09759ac commit fbe28b0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ tasks:
cmds:
- go test -v ./...

go:test:cover:
desc: runs and outputs results of created go tests with coverage
aliases: [cover]
cmds:
- go test -v ./... -coverprofile=coverage.out

go:test:coverout:
desc: runs and outputs results of created go tests with coverage
aliases: [cover]
cmds:
- task: go:test:cover
- go tool cover -html=coverage.out

go:tidy:
desc: runs go mod tidy on the backend
aliases: [tidy]
Expand Down

0 comments on commit fbe28b0

Please sign in to comment.