O'Reilly logo

NativeScript for Angular Mobile Development by Nathanael J. Anderson, Nathan Walker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required