© Mark Clow 2018
Mark ClowAngular 5 Projectshttps://doi.org/10.1007/978-1-4842-3279-8_22

22. Testing

Mark Clow1 
(1)
Sandy Springs, Georgia, USA
 

This book is mainly about how to get started being productive with Angular, but it would be incomplete without at least introducing ways to test the code that you write. The testing framework is quite complicated, so don’t expect to know everything about it after reading this chapter.

I’ll introduce some of the concepts and then go into the details of writing code to automate the testing of a project that was generated with the Angular CLI.

Unit testing is the testing of the smallest possible units of the application, either in a manual or automated form. The point of unit testing is to ensure that the code ...

Get Angular 5 Projects: Learn to Build Single Page Web Applications Using 70+ Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.