Angular testing

The first type of unit testing we will cover is Angular unit testing. It is based around Karma (https://karma-runner.github.io/) and Jasmine (http://github.com/pivotal/jasmine). Karma is a full-featured test runner, which was produced by the Angular team. When the team was implementing Angular, they ran into issues , such as figuring out how to test Angular, so they built Karma. Karma has ended up becoming an industry-standard multipurpose test runner. Jasmine is an open source testing framework that implements a number of testing constructs helps you do all your testing easily. It has been around a lot longer than Karma. Since it was in use by a lot of people before Karma, it became the default testing library in the Angular ...

Get NativeScript for Angular Mobile Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.