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

Unit Testing

Let's start this chapter with testing; most people think testing is boring. Guess what, they are mostly right! Testing can be fun in that you get to try and break your code, but it can sometimes be tedious work. However, it can help you catch mistakes before your customers do, and as a bonus, it can prevent you from making the same bug occur multiple times. How much is your reputation to your clients or customers worth? A little tedious work could mean the difference between a Triple-A application, and a mediocre application.

In this chapter, we will cover the following topics:

  • Angular Testing Framework
  • NativeScript Testing Framework
  • How to write tests using Jasmine
  • How to run Karma tests

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