November 2019
Beginner
804 pages
20h 1m
English
Angular's testing support covers unit-as well as end-to-end testing.
By default, the Angular CLI configures Jasmine (https://jasmine.github.io) for unit tests, along with Karma (https://karma-runner.github.io) as the test runner. For end-to-end testing, Protractor (https://www.protractortest.org) is the default.
The CLI also makes it easy to generate code coverage reports using Istanbul (https://istanbul.js.org). Coverage reports help to shed some light on the parts of the code base that need additional testing efforts (for example, classes, functions, or code branches that have not been tested).
Executing unit tests and generating coverage reports is as simple as running ng test --no-watch --code-coverage ...
Read now
Unlock full access