Skip to content

Commit

Permalink
ignoring some file patterns from coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Dec 9, 2023
1 parent 142a143 commit 5ef7e63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ docs: #@ Generate docs
.PHONY:docs
test: fmt vet #@ Run tests
go test -coverprofile=coverage-full.out ./...
grep -v "_mocks.go" coverage-full.out > coverage.out
grep -v "_mocks.go" coverage-full.out | grep -v "handler.go" | grep -v "collection.go" > coverage.out
go tool cover -html=coverage.out -o coverage.html
.PHONY:test
fmt: #@ Format the code
Expand Down
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
codecov:
ignore:
- "*/**/*_mocks.go"
- "*/**/*handler.go"
- "*/**/*collection.go"

0 comments on commit 5ef7e63

Please sign in to comment.