databricks-cli/internal/testcli
Denis Bilenko e0952491c9
Add tests for default-python template on different Python versions (#2025)
## Changes
Add new type of test helpers that run the command and compare full
output (golden files approach).

In case of JSON, there is also an option to ignore certain paths.

Add test for different versions of Python to go through bundle init
default-python / validate / deploy / summary.

## Tests
New integration tests.
2024-12-20 14:40:54 +00:00
..
README.md Move the CLI test runner to `internal/testcli` package (#2004) 2024-12-12 16:48:51 +00:00
golden.go Add tests for default-python template on different Python versions (#2025) 2024-12-20 14:40:54 +00:00
golden_test.go Add tests for default-python template on different Python versions (#2025) 2024-12-20 14:40:54 +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.