From the course: Angular: Testing and Debugging

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Testing overview

Testing overview - Angular Tutorial

From the course: Angular: Testing and Debugging

Start my 1-month free trial

Testing overview

- [Instructor] Testing your application ensures that any changes or additions you make will have the desired effect without introducing new errors. The two types of tests you'll see most often during development of an Angular application are unit tests and end-to-end tests. Unit tests reduce regression errors at the object or function level. Regression errors are bugs introduced by the development team that make a function stop working as expected. Unit tests eliminate regression errors by clarifying the intent of your code and confirming that your objects, methods, and classes all still work as intended. Unit tests are designed to check small, discrete chunks of code that are usually independent of the user interface or user interaction. Good unit tests can confirm a particular property exists on an object or that a specific method always returns true when passed even numbers as arguments. In Angular, you can also use unit tests to check instances of classes in isolation, which is…

Contents