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

Summary

In this chapter, we discussed how to do unit tests and the pros and cons of two of the methods of doing unit tests. In a nutshell, Angular testing works for generic TypeScript code that does not call any NativeScript-specific code, and it runs your tests really quickly. The NativeScript testing harness runs inside your NativeScript application and has full access to anything you write and anything a normal NativeScript application can do. However, it requires the NativeScript application to be running to run its tests, so it might require a full build step before it can run your tests.

Now that we have discussed the two types of unit testing, hang on to your testing hat. In the next chapter, we will cover how to do end-to-end testing ...

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