Skip to content

Commit

Permalink
fix: update coverage generation
Browse files Browse the repository at this point in the history
Update coverage filter to include packages that actually exist.

Currently this list begins and ends with the `mocks` tree.
  • Loading branch information
nisimond authored and retr0h committed Mar 12, 2024
1 parent 188af7c commit 2222827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ tasks:
cov:
desc: Generate coverage
cmds:
- go test -race -coverprofile=cover.out -v $(go list ./... | egrep -v '(/test|/test/mock)$') 2>&1 | go-junit-report --set-exit-code > result.xml || (cat result.xml && echo "fail" && exit 1)
- go test -race -coverprofile=cover.out -v $(go list ./... | grep -v /mocks) 2>&1 | go-junit-report --set-exit-code > result.xml || (cat result.xml && echo "fail" && exit 1)
- $(go env GOPATH)/bin/gocover-cobertura < cover.out > cobertura.xml
- go tool cover -func=cover.out

Expand Down

0 comments on commit 2222827

Please sign in to comment.