tree: f78ce9fe1b6f2ed19424f0fa6d8a778f92a3b84b
  1. auth.ts
  2. env.ts
  3. message.ts
  4. raw.ts
  5. README.md
  6. stream.ts
  7. topic.ts
  8. world.ts
foreign/node/src/bdd/README.md

Node.js bdd test

Node.js bdd test are run via cucumber-js. scenario are located at /bdd/scenarios

env var

the bdd test suite has no defaults and fails when any of these is missing:

  • IGGY_TCP_ADDRESS="host:port" - server address
  • IGGY_ROOT_USERNAME / IGGY_ROOT_PASSWORD - root credentials

Run (recommended)

from the repository root run

./scripts/run-bdd-tests.sh node

the script starts the server and sets every variable above, so none of them have to be exported by hand. see /bdd/README.md for the sdk and feature matrix.

Run locally

for iterating against a server you started yourself. note: bdd test expect an iggy-server started with the same root credentials

from /foreign/node run

npm ci # if not already done
IGGY_TCP_ADDRESS=127.0.0.1:8090 IGGY_ROOT_USERNAME=iggy IGGY_ROOT_PASSWORD=iggy \
  npm run test:bdd