Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

Testing your app on a device or emulator


Now that we looked at how to do different types of unit testing on your local machine and on the device, the next step is to actually have tests that run your actual app on an emulator or device. Nothing can beat an actual test of your full application on the device that you are using and targeting. The more automated the testing is, the easier it is for you to detect issues in your code while you are developing and enhancing your application.

There is an open source project called Appium that we will use. It is located at http://appium.io. This project supports iOS and Android, which makes it a perfect fit to do all of our on-device testing. To install it globally, you need to use npm install -g appium command. Then, in your main project folder, you need to also use npm install --save-dev wd, which will install the JavaScript driver that you can use to drive your application from your developer machine in JavaScript. We will continue to use Mocha...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime