Unless you are a superhero who codes, you need to test what you build. Also, unless you have loads of free time to test your application again and again, you need some test automation.
When we say Angular was built with testability in mind, we really mean it. It has a strong dependency injection (DI) framework, some good mock constructs, and awesome tools that make testing in an Angular app a fruitful endeavor.
This chapter is all about testing and is dedicated to testing what we have built over the course of this book. We test everything from controllers to filters, services, and our app directives.
The topics we cover in this chapter include:
Understanding the big picture: We will try to understand how testing fits in the overall context of Angular app development. We will also discuss types of testing Angular supports, including unit and end-to-end (E2E) testing.
Overview of tools and framework: We cover the tools and frameworks that help in both unit...