Skip to content

Commit 381bac1

Browse files
committed
Add test coverage to go-test task
1 parent b1ec571 commit 381bac1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Taskfile.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ tasks:
7272
cmds:
7373
- |
7474
export CC=$CC_{{.C_ENV}} CXX=$CXX_{{.C_ENV}}
75-
go test -vet=all -tags={{.BUILD_TAGS}} ./...
75+
mkdir -p .test/
76+
go test -vet=all -coverprofile=.test/cover.out -tags={{.BUILD_TAGS}} ./...
7677
7778
go-bench:
7879
desc: Run Go benchmarks

0 commit comments

Comments
 (0)