Skip to content

Commit

Permalink
Add test instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabua committed Sep 24, 2024
1 parent cc8a0f9 commit 84af399
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Install dependencies:

```shell
yarn install --frozen-lockfile
```
```

Lint the source code:

Expand All @@ -99,6 +99,35 @@ Build
yarn build
```

## Integration test

Integration tests run against a Trino server running on your workstation.

Requirements:

* docker and kind
* kubectl

Deploy Trino:

```shell
kubectl apply -f tests/it/trino.yml
```

Wait for pods to be ready:

```shell
kubectl wait --for=condition=ready pods -n trino-system --all --timeout=120s
```

Run tests:

```shell
kubectl -n trino-system port-forward svc/trino 8080:8080 > /dev/null &
sleep 10
yarn test:it --testTimeout=60000
```

## Contributing

Follow the [Trino contribution guidelines](https://trino.io/development/process)
Expand Down

0 comments on commit 84af399

Please sign in to comment.