databricks-cli/internal/testcli
Denis Bilenko 64fc1c8fe7
Add NoLog option on testcli.Runner ()
## Changes
Setting Verbose=false on testcli.Runner disables all logging related to
running process (stdout, stderr, error, args).

I'm using this in  where I'm using testcli runner to run acceptance
tests and seeing all output is not useful.

## Tests
Manually inspecting test output in 
2025-01-20 09:57:48 +01:00
..
README.md Move the CLI test runner to `internal/testcli` package () 2024-12-12 16:48:51 +00:00
golden.go Improve test output to include correct location () 2025-01-02 10:49:21 +01:00
runner.go Add NoLog option on testcli.Runner () 2025-01-20 09:57:48 +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.