Unit Testing Angular Apps

Using Jasmine and Karma

Ratings: 0.00 / 5.00




Description

Unit testing is the process of testing small and isolated pieces of code and it is a very powerful tool you have for preventing bugs within your application. This ensures that the application is stable, works exactly as expected and also provides an added advantage to the users to add any new features without breaking any other part of their application.

The primary focus for this course is to learn unit testing in Angular using Jasmine framework and Karma runner.

I will explain the fundamentals of angular testing from Scratch. Instead of learning the theoretical concepts, we will try to take a real world approach by writing test cases for scenarios that you may encounter on a day to day basis. By the end of the course, you will learn how to


  • Write and run tests in Angular using Jasmine & Karma.

  • Write tests for typescript classes & components.

  • Prepare the Angular Test Bed for creating the specs.

  • Test components and services using mocks and spies.

  • Write tests that involve an asynchronous operation.

  • Write tests that require the dependency injections.

  • Write tests that involve making Http calls.

  • Write tests that involve template-driven and reactive angular forms

  • Write tests to test the angular router.

What You Will Learn!

  • Understand the importance of unit tests for an application
  • Understand jasmine test framework and customization options
  • Learn about the out of the box testing features that are provided by angular framework
  • Learn and write unit test cases for the most day to day scenarios for UI developers

Who Should Attend!

  • Angular developers looking to learn how to create unit tests.