-
Notifications
You must be signed in to change notification settings - Fork 372
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
integration_test: add more test cases #297
Conversation
Added more tests or expanded existing tests to: - cover args/stdin handling edge cases for `install` cmd - cover status code of re-runs of `install`, `update`, and `remove`. - cover status when index not initialized in `remove`, `upgrade`, `install` - several other minor adjustments Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Codecov Report
@@ Coverage Diff @@
## master #297 +/- ##
=======================================
Coverage 56.22% 56.22%
=======================================
Files 19 19
Lines 891 891
=======================================
Hits 501 501
Misses 337 337
Partials 53 53 Continue to review full report at Codecov.
|
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.
Nice work, looks excellent.
Of the points listed in the referenced issues, I cannot find anything about
list
: test if plugin names can be saved to a file properly when STDOUT is
not a tty (i.e. 'backup' use case)
Was that intentional? Myself, I cannot think of a way how to get proper output for ttys, so it looks not testable to me.
|
||
test, cleanup := NewTest(t) | ||
defer cleanup() | ||
|
||
test.WithIndex().Krew("install", validPlugin).RunOrFailOutput() | ||
test.WithIndex().Krew("install", validPlugin, validPlugin2).RunOrFailOutput() |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
I think |
yep:
I'll add a test for this as well. |
|
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Fixed now. |
You are really lifting krew's code quality to the next level. 👏 for your efforts! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, corneliusweig The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Added more tests or expanded existing tests to:
install
cmdinstall
,update
, andremove
remove
,upgrade
andinstall
Fixes #294
Fixes #295