By Simon Bailey
Cast off risky code by way of taking regulate and realizing the right way to try AngularJS applications
About This Book
Learn how one can construct an excellent and extra trustworthy AngularJS codebase via test-driven improvement utilizing essentially outlined recipes
Understand how you can manage and configure your improvement setting for unit and end-to-end checking out of AngularJS applications
Over 50 hands-on recipes that can assist you construct an excellent origin in AngularJS
Who This publication Is For
This booklet is meant for builders who've an figuring out of the fundamental ideas at the back of either AngularJS and test-driven improvement. You, as a developer, have an interest in removing the terror on the topic of both introducing assessments to an current codebase or beginning out checking out on a clean AngularJS program. If you're a crew chief or a part of a QA crew with the accountability of making sure complete try out assurance of an software, then this booklet is perfect so you might understand the total checking out scope required via your builders. even if you're new to or are good versed with AngularJS, this booklet will warrantly a whole knowing of your program code and aid lessen the price of bugs.
What you'll Learn
Install and configure all required instruments and dependencies to start trying out your AngularJS application
Understand the anatomy of a unit attempt and combine center basics to start trying out AngularJS
Discover navigation and routing utilizing either the AngularJS router and the ui-router library
Explore find out how to try out controllers
Analyze try directives and user-based interaction
Explain the makes use of of spies and attempt events
Test prone utilizing mocks and spies
Animate try out instances, either synchronously and asynchronously
AngularJS stepped as much as provide a entire strategy to frontend improvement with minimum dependencies and a transparent set of objectives.
This publication follows the AngularJS philosophy and provides information on the best way to process checking out elements that make up the AngularJS framework. at the beginning of the publication, you are going to discover find out how to configure your method to run unit and end-to-end checks. Following this, you'll get to grips with basic ideas on checking out AngularJS with Jasmine. Then, you'll know the way spies can show you how to try your code with larger insurance and straightforwardness all through your program. the ultimate result's an AngularJS program that's proven with integrity, supporting facilitate a purifier and extra trustworthy codebase.