From 84af399f9569b206305de31ef60f68b03d0c27b1 Mon Sep 17 00:00:00 2001 From: Manfred Moser Date: Fri, 20 Sep 2024 11:20:37 -0700 Subject: [PATCH] Add test instructions --- README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1e21b9b5..d6c20412 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ Install dependencies: ```shell yarn install --frozen-lockfile -``` +``` Lint the source code: @@ -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)