mirror of https://github.com/databricks/cli.git
dc3a157fdc
## Changes The main CLI entry point used to be a global variable, and the global state had to be cleaned up after every test run. This hasn't been the case for a while, and instead, the CLI is initialized in a function call. State accumulated by a single CLI "instance" can no longer leak into other instances, so we no longer have to perform cleanup. ## Tests Existing tests pass. |
||
---|---|---|
.. | ||
README.md | ||
golden.go | ||
runner.go |
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
.