-
Notifications
You must be signed in to change notification settings - Fork 57
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
Move the CLI test runner to internal/testcli
package
#2004
Conversation
@@ -0,0 +1,315 @@ | |||
package testcli |
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.
Just to double check, this one was just moved, no other code changes?
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.
Yes, moved and renamed a few functions. No functional changes.
e090c92
to
5c5a0e0
Compare
If integration tests don't run automatically, an authorized user can run them manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Test Details: go/deco-tests/12299695405 |
Changes
The CLI test runner instantiates a new CLI "instance" through
cmd.New()
and runs it with specified arguments. This is as close as we get to running the real CLI in-process. This runner was located in theinternal
package next to other helpers. This change moves it to its own dedicated package.Note: this runner transitively imports pretty much the entire repository, which is why we intentionally keep it separate from
testutil
.Tests
n/a