HOME > Development > Angular Testing Masterclass (Angular 18)

Angular Testing Masterclass (Angular 18)

  • Development
  • Mar 22, 2025
SynopsisAngular Testing Masterclass (Angular 18 , available at $89.99...
Angular Testing Masterclass (Angular 18)  No.1

Angular Testing Masterclass (Angular 18), available at $89.99, has an average rating of 4.52, with 46 lectures, based on 5479 reviews, and has 26852 subscribers.

You will learn about Code in Github repository with downloadable ZIP files per section Testing Fundamentals Angular Unit Testing Best Practices Angular E2E Testing with Cypress Angular Component and Service Testing Asynchronous Angular Testing with fakeAsync and Async Continuous Integration with Travis CI This course is ideal for individuals who are Angular Developers, looking for a detailed guide to Angular Unit Testing and End to End Testing It is particularly useful for Angular Developers, looking for a detailed guide to Angular Unit Testing and End to End Testing.

Enroll now: Angular Testing Masterclass (Angular 18)

Summary

Title: Angular Testing Masterclass (Angular 18)

Price: $89.99

Average Rating: 4.52

Number of Lectures: 46

Number of Published Lectures: 46

Number of Curriculum Items: 46

Number of Published Curriculum Objects: 46

Original Price: $74.99

Quality Status: approved

Status: Live

What You Will Learn

  • Code in Github repository with downloadable ZIP files per section
  • Testing Fundamentals
  • Angular Unit Testing Best Practices
  • Angular E2E Testing with Cypress
  • Angular Component and Service Testing
  • Asynchronous Angular Testing with fakeAsync and Async
  • Continuous Integration with Travis CI
  • Who Should Attend

  • Angular Developers, looking for a detailed guide to Angular Unit Testing and End to End Testing
  • Target Audiences

  • Angular Developers, looking for a detailed guide to Angular Unit Testing and End to End Testing
  • This Course in a Nutshell

    This video course, complete with a running Github repository is a complete step-by-step guide to Angular Testing in general. We are going to take a small sample application that is already completed, but that has no tests yet.

    We are then going to discuss the best approach to test each part of the application, and we are going to write the tests step-by-step, explaining every decision along the way.

    We are going to start by writing Unit Testsfor the multiple parts of the application, and then on a later stage, we are going to learn how to perform End to End (E2E) tests.

    More than talking about how to test, this course will also cover when to test and why, as well as all sorts of testing best practices.

    Course Overview

    Starting from scratch, we are going to introduce behavior-driven testing concepts, by quickly introducing the main concepts and utilities of the Jasmine Testing framework.

    We are then going to introduce some testing best practices, and we are going to talk about mocks and Jasmine spies. We will then introduce some of the Angular Testing utilities such as the Angular TestBed, which we will be using to test a couple of simple Angular services.

    We are then going to move on to test a more complex Angular service and talk about Angular HTTP request mocking, after which we will cover the testing of Angular components.

    We are going to learn how to test Angular components with and without the DOM, what parts of the component to test, and we are going to cover in detail asynchronous tests using the fakeAsync and async utilities.

    We will cover how to test several types of typical Angular components, such as for example presentational components and smart or container components, and we will learn how to mock Angular Observable-based services.

    After unit testing the multiple components of our application, we are going to then create a test suite of End to End tests using Cypress.

    Once we have the tests written for our application, we are then going to deploy them to Travis CI, and make sure that the tests are triggered with every commit

    At the end the course, we are going to generate a test coverage report, and discuss some of the metrics

    Table of Contents

    This course will go over the following topics:

  • Introduction to the Jasmine testing framework

  • Introduction to Jasmine spies

  • Unit Testing of simple Angular Services

  • Jasmine testing best practices

  • Introduction to Angular testing utilities

  • Testing of complex Angular services

  • Mocking of Angular HTTP requests

  • Unit Testing of Angular Components

  • Asynchronous Angular Testing with fakeAsync and async

  • Mocking of Observable-based Services

  • Unit Testing of Presentational Components

  • Unit Testing of Smart or Container Components

  • Simulation of user interaction in unit tests

  • End to End Angular Testing with Cypress

  • Continuous Integration with Travis CI

  • Angular CLI Test Coverage Reports

  • What Will You Learn In this Course?

    With this course, you will feel comfortable writing Angular tests for multiple types of services and components. You will know not only the multiple Jasmine and Angular testing utilities available, but you will also know when to use them and why

    You will be familiar with Angular testing best practices, and you will know how to write useful tests that don’t take a lot of time to write and that contribute a lot for the long term health of your project

    Have a look at the course free lessons, and please enjoy the course

    Course Curriculum

    Chapter 1: Course Kickoff – Development Environment Setup

    Lecture 1: Angular Testing Course – Helicopter View

    Lecture 2: IMPORTANT – Recommended Software Versions

    Lecture 3: Angular Testing Course – Development Environment Setup

    Lecture 4: The Typescript Jumpstart Ebook

    Lecture 5: Quick Introduction to Jasmine – Test Suites and Specifications

    Lecture 6: Step-by-Step Implementation of our First Jasmine Specification

    Lecture 7: Unit Testing with Jasmine – Introduction to Jasmine Spies

    Lecture 8: Structuring Angular Unit Tests – Test Setup using beforeEach

    Lecture 9: IMPORTANT: Use TestBed.inject() instead of TestBed.get()

    Lecture 10: Using Dependency Injection in Angular Testing – The Angular TestBed

    Lecture 11: Angular Unit Testing Best Practices and commonly used Test Utilities

    Chapter 2: Angular Service Testing In Depth

    Lecture 1: Testing Angular HTTP Services – Test Setup with the HttpClientTestingModule

    Lecture 2: Angular HTTP Service Testing – Step-by-Step Implementation

    Lecture 3: Preventing Unintended HTTP Requests using the HTTP Testing Controller

    Lecture 4: Testing Angular HTTP Data Modification Services

    Lecture 5: Angular HTTP Services – Testing Error Handling

    Lecture 6: Angular HTTP Testing – Checking HTTP Request Parameters

    Chapter 3: Angular Component Testing In Depth

    Lecture 1: WARNING (Read This)

    Lecture 2: Introduction to Angular Component Testing – Presentational Components

    Lecture 3: Angular Component Testing – Test Setup with the async Test Utility

    Lecture 4: Angular Component Testing – DOM Interaction

    Lecture 5: Angular Test Debugging – How to Trigger Change Detection?

    Lecture 6: Angular Component Testing – Course Card List Test Suite Conclusion

    Lecture 7: Testing Angular Smart or Container Components – Test Setup

    Lecture 8: Mocking Observable-based Services – Testing the Home Component

    Lecture 9: Container Component Test Suite – The Home Component

    Lecture 10: Simulating User DOM Interaction in Angular Unit Tests

    Chapter 4: Asynchronous Angular Testing In Depth

    Lecture 1: Introduction to Asynchronous Angular Testing – Understanding Jasmine done()

    Lecture 2: Understanding Asynchronous Testing – a Simple Example

    Lecture 3: Understanding the Angular fakeAsync Testing Zone

    Lecture 4: Testing Promised-based code – Introduction to Microtasks

    Lecture 5: Testing Promise-based code with fakeAsync – Understanding flushMicrotasks

    Lecture 6: Testing Asynchronous Code with fakeAsync – Full Example

    Lecture 7: Using fakeAsync to test Asynchronous Observables

    Lecture 8: fakeAsync in Practice – Fixing the Home component tests

    Lecture 9: IMPORTANT – async() renamed to waitForAsync()

    Lecture 10: Understanding the Angular waitForAsync() Test Zone

    Chapter 5: Angular E2E (End to End) Testing with Cypress

    Lecture 1: Angular (E2E) End to End Testing – Getting Started with Cypress

    Lecture 2: Angular E2E (End To End Test) Hello World with Cypress

    Lecture 3: How to Mock an HTTP Backend using Cypress

    Lecture 4: Simulating User Interaction in Cypress End to End Tests

    Chapter 6: Preparing an Angular Application for Continuous Integration (CI)

    Lecture 1: Angular CLI Code Coverage and Deployment in Production Mode

    Lecture 2: Preparing an Angular Application for Continuous Integration (CI)

    Lecture 3: Running Cypress E2E Tests using Travis CI

    Chapter 7: Conclusion

    Lecture 1: Bonus Lecture (Updated Testing 2024)

    Lecture 2: Angular Testing Course – Conclusions and Key Takeaways

    Instructors

  • Angular Testing Masterclass (Angular 18)  No.2
    Angular University
    Best Selling Angular Courses | 200k+ students | 17 courses
  • Rating Distribution

  • 1 stars: 38 votes
  • 2 stars: 73 votes
  • 3 stars: 461 votes
  • 4 stars: 1991 votes
  • 5 stars: 2916 votes
  • Frequently Asked Questions

    How long do I have access to the course materials?

    You can view and review the lecture materials indefinitely, like an on-demand channel.

    Can I take my courses with me wherever I go?

    Definitely! If you have an internet connection, courses on Udemy are available on any device at any time. If you don’t have an internet connection, some instructors also let their students download course lectures. That’s up to the instructor though, so make sure you get on their good side!