Testing Angular Applications
by Corinna Cohn, Corinna Coen, Michael Giambalvo, Craig Nishina, Jesse Palmer
part 1 Unit testing
In the almost 20 years since Kent Beck’s Test Driven Development, software developers have taken more and more responsibility for writing automated tests for their applications. Whether you practice full TDD or write tests after the fact, having a robust automated test suite for your project is incredibly freeing. As Martin Fowler said, “Legacy code is untested code.” It’s risky to change untested code, especially if it was developed by someone else (or even by you months ago). People tend to work around untested code and avoid making changes to it. Having a robust suite of automated tests gives you the confidence to refactor your code and improve it, even while adding new features.
Angular is built from the ground up ...
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