databricks-cli/internal/testcli
Denis Bilenko 261b7f4083
Move bulk of "golden tests" logic to libs/testdiff (#2054)
## Changes
- Detach "golden files" assertions from testcli runner. Now any output
can be compared, no matter how it is obtained.
- Move those assertion to libs/testdiff package.

This allows using "golden files" in non-integration tests.

## Tests
Existing tests
2024-12-30 15:26:21 +00:00
..
README.md Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
golden.go Move bulk of "golden tests" logic to libs/testdiff (#2054) 2024-12-30 15:26:21 +00:00
runner.go Remove calls to `t.Setenv` from integration tests (#2018) 2024-12-16 12:34:37 +01:00

README.md

testcli

This package provides a way to run the CLI from tests as if it were a separate process. By running the CLI inline we can still set breakpoints and step through execution.

It transitively imports pretty much this entire repository, which is why we intentionally keep this package separate from testutil.