User Tools

Site Tools


dev:contributing:qa

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:contributing:qa [2020/01/20 09:45] – adding section Angular Unit Tests sandbergjadev:contributing:qa [2023/11/10 18:14] (current) – add OPAC tests sandbergja
Line 57: Line 57:
  
 See [[dev:angular_dev_best_practices#unit_tests|Evergreen Angular Development Best Practices]] See [[dev:angular_dev_best_practices#unit_tests|Evergreen Angular Development Best Practices]]
 +
 +To run on a running Evergreen server:
 +
 +<code sh>
 +cd Open-ILS/src/eg2
 +npm run test
 +</code>
 +
 +==== Angular e2e (end-to-end) Tests ====
 +
 +To run with a GUI:
 +
 +<code sh>
 +cd Open-ILS/src/eg2
 +ng e2e
 +</code>
 +
 +To run without a GUI:
 +
 +<code sh>
 +cd Open-ILS/src/eg2
 +MOZ_HEADLESS=1 ng e2e
 +</code>
 +
 +To run in Chrome instead of Firefox:
 +<code sh>
 +cd Open-ILS/src/eg2
 +npm install --save-dev chromedriver
 +ng e2e --env chrome # with the GUI
 +ng e2e --env chrome-headless # without the GUI
 +</code>
 +
 +For more tips and documentation, visit the [[https://github.com/evergreen-library-system/Evergreen/blob/main/Open-ILS/src/eg2/CHEAT_SHEET.adoc|Angular client cheat sheet]] and the [[https://nightwatchjs.org/v26/|Nightwatch documentation]].
 +
 +==== OPAC Javascript Unit Tests ====
 +
 +To run tests for the javascript in the OPAC:
 +<code sh>
 +cd Open-ILS/web/opac/deps
 +npm i && npm run test
 +</code>
 +
 ==== Perl Unit Tests ==== ==== Perl Unit Tests ====
  
dev/contributing/qa.1579531523.txt.gz · Last modified: 2022/02/10 13:34 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

© 2008-2022 GPLS and others. Evergreen is open source software, freely licensed under GNU GPLv2 or later.
The Evergreen Project is a U.S. 501(c)3 non-profit organization.