You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iggy.apache.org by ch...@apache.org on 2026/08/24 02:45:29 UTC
(iggy) branch fix-bdd-env created (now 84d74a671)
This is an automated email from the ASF dual-hosted git repository.
chengxilo pushed a change to branch fix-bdd-env
in repository https://gitbox.apache.org/repos/asf/iggy.git
at 84d74a671 docs: update foreign/node/README.md
This branch includes the following new commits:
new 84d74a671 docs: update foreign/node/README.md
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iggy) 01/01: docs: update foreign/node/README.md
Posted by ch...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
chengxilo pushed a commit to branch fix-bdd-env
in repository https://gitbox.apache.org/repos/asf/iggy.git
commit 84d74a671770217c9b17c6241631c5185f6d1f46
Author: chengxi <ch...@gmail.com>
AuthorDate: Sun Aug 23 22:39:22 2026 -0400
docs: update foreign/node/README.md
update it to align with foreign/node/src/bdd/README.md
---
foreign/node/README.md | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
diff --git a/foreign/node/README.md b/foreign/node/README.md
index 169500437..0deb555e2 100644
--- a/foreign/node/README.md
+++ b/foreign/node/README.md
@@ -122,7 +122,7 @@ npm run build
### test
note: use env var `IGGY_TCP_ADDRESS="host:port"` to set the server
-address for bdd and e2e tests.
+address for e2e tests. bdd tests need more variables, see below.
#### unit tests
@@ -140,15 +140,27 @@ npm run test:e2e
#### bdd tests
-bdd test expect an iggy-server at tcp://127.0.0.1:8090
+the bdd suite has no defaults and fails when `IGGY_TCP_ADDRESS`,
+`IGGY_ROOT_USERNAME` or `IGGY_ROOT_PASSWORD` is missing. from the repository
+root run
```bash
-npm run test:bdd
+./scripts/run-bdd-tests.sh node
```
+the script starts the server and sets every variable, so none of them have to be
+exported by hand. to iterate against a server you started yourself, see
+[src/bdd/README.md](./src/bdd/README.md).
+
#### run all test
-`npm run test` runs unit, bdd and e2e tests suite (expect an iggy-server at tcp://127.0.0.1:8090)
+`npm run test` runs unit, bdd and e2e tests suite against an iggy-server at
+tcp://127.0.0.1:8090, started with the same root credentials
+
+```bash
+IGGY_TCP_ADDRESS=127.0.0.1:8090 IGGY_ROOT_USERNAME=iggy IGGY_ROOT_PASSWORD=iggy \
+ npm run test
+```
### lint