Skip login/logout tests if KORAP_LOGIN empty

Change-Id: I67e1e30f2b96724b68c99521d72187045ddb2329
2 files changed
tree: 5b5d454c3f84e3dffc5405aeb0315d46c3d110c5
  1. lib/
  2. test/
  3. package.json
  4. Readme.md
Readme.md

KorAP-E2E-Tests

Perform basic end-to-end tests on a KorAP-Kalamar instance with a headless browser using mocha, puppeteer and chai.

Install

npm install

Run

npm test

defaults to:

KORAP_URL="http://localhost:64543" KORAP_LOGIN="user2" KORAP_PWD="password2"\
 KORAP_QUERIES="npm test" KORAP_QUERIES='geht, [orth=geht & cmc/pos=VVFIN]'\
 npm test

Comments on Environment Variables

Use KORAP_LOGIN="" npm test to skip login and logout tests, e.g. to run tests against Kustvakt-lite.