commit | 4c5a7a5385e3fcb2afe15399f29d18413931f0e8 | [log] [tgz] |
---|---|---|
author | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Dec 04 16:56:30 2022 +0100 |
committer | Marc Kupietz <kupietz@ids-mannheim.de> | Sun Dec 04 16:56:30 2022 +0100 |
tree | 9f089393b51093958d783fd65b04ac0b30984f23 | |
parent | 55fc316e5102cc4cffbd157f9ef5c57e2ec69cfd [diff] |
Make screenshot on failed tests Change-Id: I16f5c2314fce1576eb1eda26ddff7b156e530988
Perform basic end-to-end tests on a KorAP-Kalamar instance with a headless browser using mocha, puppeteer and chai.
npm install
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
Use KORAP_LOGIN="" npm test
to skip login and logout tests, e.g. to run tests against Kustvakt-lite.