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

Integration testing

There are several full application frameworks out there, but we will show you how to use Appium (http://appium.io). Appium is an awesome open source application testing framework. Appium supports both iOS and Android, which makes it a perfect fit for doing all our on-device testing. You want to start creating tests to test your basic flow through your application, and even create more complicated tests that test alternate flows through your app.

Let's get it installed first; run the following command:

npm install appium wd nativescript-dev-appium --save-dev

The preceding command installs Appium, the Appium communication driver WD (http://admc.io/wd/), and the NativeScript driver (https://github.com/NativeScript/nativescript-dev-appium ...

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