databricks-cli/internal
Pieter Noordhuis e472b5d888
Move the CLI test runner to `internal/testcli` package (#2004)
## 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
2024-12-12 16:48:51 +00:00
..
acc Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
bugbash Add script to make testing of code on branches easier (#1844) 2024-10-21 17:56:17 +00:00
build Enable gofumpt and goimports in golangci-lint (#1999) 2024-12-12 10:28:42 +01:00
bundle Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
mocks Rewrite 'interface{} -> any' (#1959) 2024-12-05 15:37:24 +00:00
python Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
testcli Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
testdata Add support for non-Python ipynb notebooks to DABs (#1827) 2024-11-13 21:39:51 +00:00
testjsons Update Go SDK to 0.23.0 and use custom marshaller (#772) 2023-10-16 06:56:06 +00:00
testutil Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
alerts_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
api_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
auth_describe_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
clusters_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
completer_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
dashboard_assumptions_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
filer_test.go Define and use `testutil.TestingT` interface (#2003) 2024-12-12 14:42:15 +00:00
fs_cat_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_cp_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_ls_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_mkdir_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
fs_rm_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
git_clone_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
git_fetch_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
helpers.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
init_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
jobs_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
locker_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
repos_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
secrets_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
storage_credentials_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
sync_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
tags_test.go Consolidate helper functions to `internal/testutil` package (#2002) 2024-12-12 12:35:38 +00:00
unknown_command_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
version_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
workspace_test.go Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00