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

Added code coverage report generation and upload to codecov #317

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Added code coverage report generation and upload to codecov #317

merged 1 commit into from
Jan 18, 2022

Conversation

dharmjit
Copy link
Contributor

@dharmjit dharmjit commented Jan 14, 2022

What this PR does / why we need it:
This will provide continuous test code coverage for BYOH. The step apt-get install golang-ginkgo-dev installs version 1.2.0 which does not handle the creation of code coverage report, hence the command is updated to go get

  • Code coverage for unit/integration tests
  • Secret is added for integration to codecov
  • e2e and webhook tests are skipped

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #309

Additional information
A successful run on my fork is https://github.com/dharmjit/cluster-api-provider-bringyourownhost/runs/4813076281?check_suite_focus=true and code coverage can be seen here https://app.codecov.io/gh/dharmjit/cluster-api-provider-bringyourownhost/

Special notes for your reviewer
Webhook tests are excluded from test coverage currently and will be included in subsequent PR as we need to figure out how to remove some specific files only.

Copy link
Contributor

@anusha94 anusha94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Thank you!

.github/workflows/main.yml Show resolved Hide resolved
@dharmjit dharmjit merged commit 0fefe0b into vmware-tanzu:main Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate code coverage and upload to codecov
4 participants