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

Miscellaneous test coverage improvements #719

Merged
merged 13 commits into from
Apr 12, 2023

Conversation

willvedd
Copy link
Contributor

@willvedd willvedd commented Apr 6, 2023

🔧 Changes

Numerous unit tests, integration tests, code removal and subtle refactoring to increase the code coverage measurement. These are changes that are too small to exist on their own.

🔬 Testing

All tests pass.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2023

Codecov Report

Patch coverage: 28.57% and project coverage change: +1.18 🎉

Comparison is base (887587c) 68.60% compared to head (e9e5be1) 69.79%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #719      +/-   ##
==========================================
+ Coverage   68.60%   69.79%   +1.18%     
==========================================
  Files          87       87              
  Lines       11239    11192      -47     
==========================================
+ Hits         7711     7811     +100     
+ Misses       3016     2867     -149     
- Partials      512      514       +2     
Impacted Files Coverage Δ
internal/cli/cli.go 54.29% <0.00%> (+1.40%) ⬆️
internal/cli/login.go 35.12% <0.00%> (+0.33%) ⬆️
internal/cli/templates.go 82.97% <ø> (+16.86%) ⬆️
internal/cli/tenants.go 61.53% <ø> (+0.58%) ⬆️
internal/cli/users_roles.go 52.32% <0.00%> (+2.94%) ⬆️
internal/cli/logs.go 61.37% <33.33%> (ø)
internal/cli/universal_login_templates.go 46.09% <60.00%> (+9.36%) ⬆️

... and 6 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@willvedd willvedd marked this pull request as ready for review April 11, 2023 16:29
@willvedd willvedd requested a review from a team as a code owner April 11, 2023 16:29
assert.Len(t, stdout.Bytes(), 0)
})

t.Run("Stream successfully", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have an assert in this test?

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for spotting that! 👍🏻 Improved in 59e23d8 (#719).

@sergiught sergiught force-pushed the miscellaneous-test-coverage-improvements branch from 59e23d8 to 21e9cf8 Compare April 12, 2023 10:40
@sergiught sergiught merged commit ac090d1 into main Apr 12, 2023
@sergiught sergiught deleted the miscellaneous-test-coverage-improvements branch April 12, 2023 10:46
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.

4 participants