Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wang <[email protected]>
  • Loading branch information
whynowy committed Jun 11, 2024
1 parent 4d529e4 commit 608eb1f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 179 deletions.
16 changes: 16 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ignore:
- "**/*.pb.go"
- "**/*.pb.gw.go"
- "**/*generated.go"
- "**/*generated.deepcopy.go"
- "**/*_test.go"
- "pkg/client/.*"
- "vendor/.*"
- "test/.*"
coverage:
status:
patch: off
project:
default:
# allow test coverage to drop by 2%, assume that it's typically due to CI problems
threshold: 2
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,13 @@ test:

.PHONY: test-coverage
test-coverage:
go test -covermode=atomic -coverprofile=test/profile.cov.tmp $(shell go list ./... | grep -v /vendor/ | grep -v /numaflow/test/ | grep -v /pkg/client/ | grep -v /pkg/proto/ | grep -v /hack/)
cat test/profile.cov.tmp | grep -v v1alpha1/zz_generated | grep -v v1alpha1/generated | grep -v v1alpha1/openapi_generated > test/profile.cov
rm test/profile.cov.tmp
go test -covermode=atomic -coverprofile=test/profile.cov $(shell go list ./... | grep -v /vendor/ | grep -v /numaflow/test/ | grep -v /pkg/client/ | grep -v /pkg/proto/ | grep -v /hack/)
go tool cover -func=test/profile.cov


.PHONY: test-coverage-with-isb
test-coverage-with-isb:
go test -covermode=atomic -coverprofile=test/profile.cov.tmp -tags=isb_redis $(shell go list ./... | grep -v /vendor/ | grep -v /numaflow/test/ | grep -v /pkg/client/ | grep -v /pkg/proto/ | grep -v /hack/)
cat test/profile.cov.tmp | grep -v v1alpha1/zz_generated | grep -v v1alpha1/generated | grep -v v1alpha1/openapi_generated > test/profile.cov
rm test/profile.cov.tmp
go test -covermode=atomic -coverprofile=test/profile.cov -tags=isb_redis $(shell go list ./... | grep -v /vendor/ | grep -v /numaflow/test/ | grep -v /pkg/client/ | grep -v /pkg/proto/ | grep -v /hack/)
go tool cover -func=test/profile.cov

.PHONY: test-code
Expand Down
173 changes: 0 additions & 173 deletions pkg/sources/udsource/user_defined_source_test.go

This file was deleted.

0 comments on commit 608eb1f

Please sign in to comment.