March 2018
Intermediate to advanced
380 pages
9h 23m
English
The client-side unit tests and end-to-end tests are available under src/test/javascript.
These tests can be run using the provided npm scripts or the provided Gradle tasks.
Let's run them using the npm scripts. First, let's run the Karma unit tests. In the terminal, execute the following code. You can also use npm instead of yarn if you prefer:
> yarn test
It should produce a similar output in the end:
PhantomJS 2.1.1 (Linux 0.0.0): Executed 56 of 56 SUCCESS (1.672 secs / 1.528 secs)=============================== Coverage summary ===============================Statements : 69.25% ( 903/1304 )Branches : 40.43% ( 112/277 )Functions : 48.89% ( 154/315 )Lines ...