Book Image

JavaScript Mobile Application Development

Book Image

JavaScript Mobile Application Development

Overview of this book

Table of Contents (15 chapters)
JavaScript Mobile Application Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Unit Testing the Cordova App's Logic

In this chapter, you will learn how to develop JavaScript unit tests for your Cordova app logic. In this chapter, you will:

  • Learn the basics of the Jasmine JavaScript unit testing framework

  • Use Jasmine in order to test both synchronous and asynchronous JavaScript code

  • Utilize Karma as a powerful JavaScript test runner in order to automate the running of your developed Jasmine tests

  • Generate test and code coverage reports from your developed tests

  • Automate your JavaScript tests by integrating your developed tests with Continuous Integration (CI) tools