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

Running the tests

Let's try testing the application; to run your tests, type the following command:

tns test android

Alternatively, you can run the following command:

tns test ios

This will start the testing, and you should see something like this:

Note that there is an ERROR on this screen; this is a false error. Basically, when the app finishes running its tests, it quits. Karma sees that the application has quit unexpectedly and logs it as an "ERROR" Disconnected. The import information is the line below the error, where it says Executed 2 of 2 SUCCESS. This means that it ran two different described tests (that is, our test.ts file and ...

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