-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add codecov setting for test coverage check #26
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #26 +/- ##
=======================================
Coverage ? 44.03%
=======================================
Files ? 29
Lines ? 12264
Branches ? 0
=======================================
Hits ? 5401
Misses ? 6544
Partials ? 319 |
fc3dcf5
to
a395e89
Compare
status: | ||
patch: | ||
default: | ||
target: 70% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is 70% coverage required in libOpenflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For each Patch(newly added code lines), 70% coverage is required.
f94aa1b
to
aad5f9b
Compare
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
2da14f2
to
672218f
Compare
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
Makefile
Outdated
@@ -4,7 +4,7 @@ all: test | |||
|
|||
.PHONY: test | |||
test: | |||
$(GO) test -v ./... | |||
$(GO) test -v -coverprofile coverage.txt -covermode=atomic -coverpkg=antrea.io/libOpenflow/common/...,antrea.io/libOpenflow/openflow13/...,antrea.io/libOpenflow/openflow15/...,antrea.io/libOpenflow/protocol/...,antrea.io/libOpenflow/util/... antrea.io/libOpenflow/... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove package antrea.io/libOpenflow/openflow13
, which is not maintained in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
Add codecov
Signed-off-by: Wenqi Qiu wenqiq@vmware.com