This project has an extensive test suite powered by QUnit and an interactive test page for testing a few quirky scenarios.
The command line test suite is the preferred method of testing. It has the most comprehensive set of tests, and includes code linting.
- All commands should be run from the project's root directory (where the
package.jsonfile is). - The test automation is run with Node.js. So you must have that installed before you can use the command line tools.
Install the necessary npm dependencies with the following command (this only needs to be done once):
npm installAfter that you can run the test suite with the following command:
npm run testYou can also run the main test suite directly in a web browser. This is particularly useful for testing a specific browser. Simply open the index.html file in a browser and the test suite will immediately begin the testing process.
The edge cases test page includes a number of tests that cover scenarios which are either difficult or impossible to automate. So that set of tests can only be done with human interaction. It also includes a helpful status window for debugging.
You can perform those tests by opening edge-cases.html in a web browser. Each test case includes instructions on how to verify correct functionality.