Testing Angular Applications
by Corinna Cohn, Corinna Coen, Michael Giambalvo, Craig Nishina, Jesse Palmer
part 2 End-to-end testing
Unit tests are great: they run quickly and let you exercise the functionality of your components. But at the end of the day, you still need to be sure that your entire application works as expected. In this part of the book, we cover writing tests that control a browser using Protractor, Angular’s end-to-end (E2E) testing framework. These tests can be hard to write and debug, but having a few E2E tests is a good way to catch issues that might not show up in unit tests.
Chapter 8 is an introduction to Protractor. It covers how Protractor works, writing a basic test, and making your tests easier to maintain with page objects.
Because Protractor tests can interact with your application only through a browser, these ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access