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

test: add more unit tests #598

Merged
merged 5 commits into from
Nov 7, 2023
Merged

test: add more unit tests #598

merged 5 commits into from
Nov 7, 2023

Conversation

phm07
Copy link
Contributor

@phm07 phm07 commented Nov 2, 2023

No description provided.

@phm07 phm07 added the test label Nov 2, 2023
@phm07 phm07 self-assigned this Nov 2, 2023
@apricote
Copy link
Member

apricote commented Nov 6, 2023

Nice work @pauhull! A much needed improvement of our test suite! At the time of bc87709 this changes the test coverage from:

  • main: 19.9% of statements
  • PR: 39.4% of statements

🚀 😎

Copy link
Member

@apricote apricote left a comment

Choose a reason for hiding this comment

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

👍

There are quite a few avenues to expand coverage even further. I have noted the first two, but using the Coverage report in the IDE or go test -coverprofile can help surface them. This is in no way required to merge the PR, you can always create a follow up with more tests.

internal/cmd/certificate/create_test.go Show resolved Hide resolved
internal/cmd/certificate/describe_test.go Outdated Show resolved Hide resolved
@phm07 phm07 marked this pull request as ready for review November 7, 2023 12:36
@phm07 phm07 requested a review from a team as a code owner November 7, 2023 12:36
@phm07 phm07 changed the title test: add missing unit tests test: add more unit tests Nov 7, 2023
@phm07 phm07 merged commit e6810b1 into main Nov 7, 2023
3 checks passed
@phm07 phm07 deleted the add-unit-tests branch November 7, 2023 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants