Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wenqiq
Copy link

@wenqiq wenqiq commented Aug 26, 2022

Add codecov

Signed-off-by: Wenqi Qiu wenqiq@vmware.com

@wenqiq wenqiq changed the title Add codecov [WIP]Add codecov Aug 26, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2022

Codecov Report

❗ No coverage uploaded for pull request base (main@02150d8). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main      #26   +/-   ##
=======================================
  Coverage        ?   44.03%           
=======================================
  Files           ?       29           
  Lines           ?    12264           
  Branches        ?        0           
=======================================
  Hits            ?     5401           
  Misses          ?     6544           
  Partials        ?      319           

@wenqiq wenqiq force-pushed the codecov branch 2 times, most recently from fc3dcf5 to a395e89 Compare August 26, 2022 18:08
@wenqiq wenqiq changed the title [WIP]Add codecov Add codecov setting for test coverge check Aug 29, 2022
@wenqiq wenqiq marked this pull request as ready for review August 29, 2022 17:04
@wenqiq wenqiq changed the title Add codecov setting for test coverge check Add codecov setting for test coverage check Sep 2, 2022
status:
patch:
default:
target: 70%

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?

Copy link
Author

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.

@wenyingd wenyingd requested a review from antoninbas September 15, 2022 06:37
@wenqiq wenqiq force-pushed the codecov branch 2 times, most recently from f94aa1b to aad5f9b Compare October 11, 2022 08:51
Signed-off-by: Wenqi Qiu <wenqiq@vmware.com>
@wenqiq wenqiq force-pushed the codecov branch 2 times, most recently from 2da14f2 to 672218f Compare October 12, 2022 05:08
@wenqiq wenqiq closed this Oct 13, 2022
@wenqiq wenqiq reopened this Oct 13, 2022
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/...

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.

Copy link
Author

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants