Skip to content

Conversation

@pietern
Copy link
Contributor

@pietern pietern commented Dec 12, 2024

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 the internal 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

@@ -0,0 +1,315 @@
package testcli
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Base automatically changed from integration-work-testingt to main December 12, 2024 14:48
@github-actions
Copy link

If integration tests don't run automatically, an authorized user can run them manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 2004
  • Commit SHA: 5c5a0e0b162bba963ee796e28a5173c9443798a6

Checks will be approved automatically on success.

@eng-dev-ecosystem-bot
Copy link
Collaborator

Test Details: go/deco-tests/12299695405

@pietern pietern enabled auto-merge December 12, 2024 15:50
@pietern pietern added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit e472b5d Dec 12, 2024
11 checks passed
@pietern pietern deleted the move-cli-runner branch December 12, 2024 16:54
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.

5 participants