Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move integration tests to integration package #2009

Merged
merged 24 commits into from
Dec 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add brief README about integration tests
  • Loading branch information
pietern committed Dec 12, 2024
commit b8a34decf516ff5b8ca3fddbba875ee9710075b0
35 changes: 35 additions & 0 deletions integration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Integration tests

This directory contains integration tests for the project.

The tree structure generally mirrors the source code tree structure.

Requirements for new files in this directory:
* Every integration test file **must** use the `integration` build tag
* Every package **must** be named after its directory with `_integration` appended
pietern marked this conversation as resolved.
Show resolved Hide resolved
* Requiring a different package name for integration tests avoids aliasing with the main package.

## Running integration tests

Integration tests require the following environment variables:
* `CLOUD_ENV` - set to the cloud environment to use (e.g. `aws`, `azure`, `gcp`)
pietern marked this conversation as resolved.
Show resolved Hide resolved
* `DATABRICKS_HOST` - set to the Databricks workspace to use
* `DATABRICKS_TOKEN` - set to the Databricks token to use

Optional environment variables:
* `TEST_DEFAULT_WAREHOUSE_ID` - set to the default warehouse ID to use
* `TEST_METASTORE_ID` - set to the metastore ID to use
* `TEST_INSTANCE_POOL_ID` - set to the instance pool ID to use
* `TEST_BRICKS_CLUSTER_ID` - set to the cluster ID to use

To run all integration tests, use the following command:

```bash
go test -tags=integration ./...
```

Alternatively:

```bash
make integration
```