dev:contributing:qa
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dev:contributing:qa [2022/02/10 13:34] – external edit 127.0.0.1 | dev:contributing:qa [2023/11/10 18:14] (current) – add OPAC tests sandbergja | ||
---|---|---|---|
Line 57: | Line 57: | ||
See [[dev: | See [[dev: | ||
+ | |||
+ | To run on a running Evergreen server: | ||
+ | |||
+ | <code sh> | ||
+ | cd Open-ILS/ | ||
+ | npm run test | ||
+ | </ | ||
+ | |||
+ | ==== Angular e2e (end-to-end) Tests ==== | ||
+ | |||
+ | To run with a GUI: | ||
+ | |||
+ | <code sh> | ||
+ | cd Open-ILS/ | ||
+ | ng e2e | ||
+ | </ | ||
+ | |||
+ | To run without a GUI: | ||
+ | |||
+ | <code sh> | ||
+ | cd Open-ILS/ | ||
+ | MOZ_HEADLESS=1 ng e2e | ||
+ | </ | ||
+ | |||
+ | To run in Chrome instead of Firefox: | ||
+ | <code sh> | ||
+ | cd Open-ILS/ | ||
+ | npm install --save-dev chromedriver | ||
+ | ng e2e --env chrome # with the GUI | ||
+ | ng e2e --env chrome-headless # without the GUI | ||
+ | </ | ||
+ | |||
+ | For more tips and documentation, | ||
+ | |||
+ | ==== OPAC Javascript Unit Tests ==== | ||
+ | |||
+ | To run tests for the javascript in the OPAC: | ||
+ | <code sh> | ||
+ | cd Open-ILS/ | ||
+ | npm i && npm run test | ||
+ | </ | ||
+ | |||
==== Perl Unit Tests ==== | ==== Perl Unit Tests ==== | ||
dev/contributing/qa.1644518097.txt.gz · Last modified: 2022/02/10 13:34 by 127.0.0.1