Eliminate volatile code by taking control and understanding how to test AngularJS applications
AngularJS stepped up to offer a comprehensive solution to frontend development with minimal dependencies and a clear set of objectives.
This book follows the AngularJS philosophy and offers guidance on how to approach testing components that make up the AngularJS framework. At the start of the book, you will explore how to configure your system to run unit and end-to-end tests. Following this, you'll become familiar with fundamental principles on testing AngularJS with Jasmine. Then, you'll understand how spies can enable you to test your code with greater coverage and simplicity throughout your application. The final result is an AngularJS application that is tested with integrity, helping facilitate a cleaner and more reliable codebase.
What You Will Learn
Install and configure all required tools and dependencies to begin testing your AngularJS application
Understand the anatomy of a unit test and integrate core fundamentals to begin testing AngularJS
Discover navigation and routing using both the AngularJS router and the ui-router library
Explore how to test controllers
Analyze test directives and user-based interaction
Explain the uses of spies and test events
Test services using mocks and spies
Animate test cases, both synchronously and asynchronously
Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.