mirror of https://github.com/databricks/cli.git
c958702097
## Changes Objectives: * A dedicated directory for integration tests * It is not picked up by `go test ./...` * No need for a `TestAcc` test name prefix * More granular packages to improve test selection (future) The tree structure generally mirrors the source code tree structure. Requirements for new files in this directory: * Every package **must** be named after its directory with `_test` appended * Requiring a different package name for integration tests avoids aliasing with the main package. * Every integration test package **must** include a `main_test.go` file. These requirements are enforced by a unit test in the `integration` package. ## Tests Integration tests pass. The total run time regresses by about 10%. A follow-up change that increases the degree of test parallelism will address this. |
||
---|---|---|
.. | ||
bundles | ||
testdata/init/field-does-not-exist | ||
artifacts_test.go | ||
basic_test.go | ||
bind_resource_test.go | ||
clusters_test.go | ||
dashboards_test.go | ||
deploy_test.go | ||
deploy_then_remove_resources_test.go | ||
deploy_to_shared_test.go | ||
deployment_state_test.go | ||
destroy_test.go | ||
empty_bundle_test.go | ||
environments_test.go | ||
generate_job_test.go | ||
generate_pipeline_test.go | ||
helpers_test.go | ||
init_test.go | ||
job_metadata_test.go | ||
local_state_staleness_test.go | ||
main_test.go | ||
python_wheel_test.go | ||
spark_jar_test.go | ||
validate_test.go |