February 2019
Beginner
694 pages
18h 4m
English
One of the questions that the Aurelia command-line interface asks when setting up a new Aurelia application (au new) is whether or not to configure unit-testing. If we answer yes to this question, then all of the testing configuration files and dependencies are installed automatically. In the interests of time, we will not investigate how to retrospectively add unit-testing capabilities to an existing Aurelia application, but will instead assume that this has already been configured.
To run Aurelia unit tests, simply type the following:
au karma
This will invoke the built-in Karma test runner, and execute any tests found in the /test/unit directory that match the filename convention of *spec.js.
Read now
Unlock full access