NativeScript testing framework

Okay, be ready to play with the NativeScript testing framework. It is fairly simple to install, you simply type the following command:

tns test init

There is no reason to switch testing frameworks, so choose jasmine at the prompt asking you which testing framework to use with the NativeScript testing framework. This will install all the needed resources for the NativeScript testing system. NativeScript's testing system also uses Karma, and it supports a couple of different testing frameworks, but for consistency, we will want to continue to use Jasmine.

Remember earlier when I said Karma uses a browser to do all its tests, and I also said that NativeScript code doesn't run in a browser? So, why does NativeScript ...

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.