Introduction
Since its inception, AngularJS has always been a framework built with maximum testability in mind. Developers are often averse to devoting substantial time towards creating a test suite for their application, yet we all know only too well how wrong things can go when untested or partially tested code is shipped to production.
One could fill an entire book with the various tools and methodologies available for testing AngularJS applications, but a pragmatic developer likely desires a solution that is uncomplicated and gets out of the way of the application's development. This chapter will focus on the most commonly used components and practices that are at the core of the majority of test suites, as well as the best practices that yield the most useful and maintainable tests.
Furthermore, preferred testing utilities have evolved substantially over the AngularJS releases spanning the past year. This chapter will only cover the most up-to-date strategies used for AngularJS testing...