File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ output : prefixed
4+
5+ vars :
6+ COVERNAME : ' coverage'
7+ COVEREXT : ' .out'
8+ COVERFILE : ' {{.COVERNAME}}{{.COVEREXT}}'
9+ COVERHTML : ' {{.COVERNAME}}.html'
10+
11+ tasks :
12+
13+ go-test :
14+ desc : ' runs `go test` in race detection and atomic coverage collection mode'
15+ dir : ' {{.USER_WORKING_DIR}}'
16+ cmds :
17+ - cmd : go test -v ./... -race -coverprofile={{.COVERFILE}} -covermode=atomic
18+
19+ go-cover :
20+ desc : ' runs the go-test task, the `cover` Go tool and displays the generated HTML report'
21+ dir : ' {{.USER_WORKING_DIR}}'
22+ deps :
23+ - task : go-test
24+ cmds :
25+ - cmd : go tool cover -html={{.COVERFILE}} -o {{.COVERHTML}}
26+ - cmd : cmd /c start {{.COVERHTML}}
27+ platforms : [windows]
28+
Original file line number Diff line number Diff line change 1- # taskfiles
2- A collection of Taskfiles for https://taskfile.dev/
1+ # A collection of Taskfiles for [ Task] ( https://taskfile.dev/ )
You can’t perform that action at this time.
0 commit comments