Add .mocharc

Change-Id: If618e0a8631e440d0940163ad1e89a7dc87ea515
1 file changed
tree: 1bd25c7a7651ead05463f3e3738ff0c3b77e5be9
  1. lib/
  2. test/
  3. .mocharc.yml
  4. package.json
  5. 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.