Find out why unit testing and end-to-end testing are great additions to your Angular 2 application, as well as the basics of when to use them and their limitations.
- [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 run most often…during development of an Angular 2 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 feature stop working as expected.…Units tests eliminate regression errors…by clarifying the intent of your code…and confirming that your objects, methods, and classes…all still work as intended.…
Units 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…and passed even numbers as arguments.…In Angular, you can also use unit tests…to check instances of classes in isolation,…which is great for confirming that a pipe works as expected…
- Analyzing Angular 2 error messages
- Identifying the causes of common error messages
- Preventing common errors with custom error handling
- Analyzing testing reports
- Reviewing common testing report errors and their likely causes
Skill Level Intermediate
Q: This course was updated on 10/30/2018. What changed?
A: The following topics were updated: common Angular 2 errors—including dependency injection errors—and testing Angular 2 apps.
1. Getting Started
Application overview1m 49s
2. How Angular 2 Reports Errors
Error handling in Angular1m 21s
3. Common Angular 2 Errors
4. Testing Angular 2 Applications
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.