Skip to content

Latest commit

 

History

History
33 lines (26 loc) · 894 Bytes

File metadata and controls

33 lines (26 loc) · 894 Bytes

Tests

This directory contains a variety of files used for testing. Including:

  • phpunit tests in the unittests directory
  • QUnit tests in the jsTests directory
  • Manual web-based tests in the manual_web directory
  • Smoke tests in the smoketests directory
  • GitHub Actions configuration

phpunit tests

phpunit.xml contains configuration information like bootstrap requirements, so running the full suite is as simple as:

cd unittests
../../../vendor/bin/phpunit

To run the page compare test only:

../../../vendor/bin/phpunit PageCompareTest.php

JS tests

The QUnit-based JS tests can be run from the base of the repo with:

npm run test

You can also load the SETUP/tests/jsTests/qunit.html file in your web browser to run them and see any failures.