Angular Testing Masterclass (with FREE E-Book) (Udemy.com)

A complete guide to Angular 11 Unit Testing and End to End (E2E) Testing, including Testing best practices and CI

Created by: Angular University

Produced in 2021

icon
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

icon
Quality Score

Content Quality
/
Video Quality
/
Qualified Instructor
/
Course Pace
/
Course Depth & Coverage
/

Overall Score : 88 / 100

icon
Course Description

This Course in a NutshellThis 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 Tests for 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 OverviewStarting 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 ContentsThis course will go over the following topics:
Introduction to the Jasmine testing frameworkIntroduction to Jasmine spiesUnit Testing of simple Angular ServicesJasmine testing best practicesIntroduction to Angular testing utilitiesTesting of complex Angular servicesMocking of Angular HTTP requestsUnit Testing of Angular ComponentsAsynchronous Angular Testing with fakeAsync and asyncMocking of Observable-based ServicesUnit Testing of Presentational ComponentsUnit Testing of Smart or Container ComponentsSimulation of user interaction in unit testsEnd to End Angular Testing with CypressContinuous Integration with Travis CIAngular CLI Test Coverage ReportsWhat 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!
Who this course is for:
Angular Developers, looking for a detailed guide to Angular Unit Testing and End to End Testing

icon
Instructor Details

Angular University

About the Angular University:
The Angular University aims to be the one place that yougo in order to learn and keep up with the whole Angularecosystem. We provide premium quality video tutorials, screencast style.
No matter if you are a beginner, intermediate or advanced in Angular, we have several courses for you.
About the course instructor:
Hello, my name is Vasco and I'm aSoftware Developer with 17 years of experience,veryseasonedbuilding userinterfaces with Angular. I've workedas a FrontendDeveloper/Architect in a largevariety of enterpriseprojects throughout the years.
I worked on a ton of projects, everything fromsingle page applications tohelp build theEuropean Criminal Record Information Exchange System, to brand new e-banking portals, to corporate banking portals, and more. I've been a key part of internalframework teams that built frameworks for in-house departments of tens of developers.
I also loveto teach, write and talk about technology. I am looking forward to be your Angular instructor,
Kind Regards,
Vasco

icon
More courses by Angular University

NgRx (with NgRx Data) - The Complete Guide (FREE E-Book)

$11.99

Reactive Angular Course (with RxJs)

$11.99

RxJs 6 In Practice (with FREE E-Book)

$11.99

Typescript Masterclass & FREE E-Book

$11.99

Angular Router Jumpstart & FREE E-Book

$11.99

Angular Forms Jumpstart & FREE E-Book

$11.99

icon
More angular courses

Single Page Web Applications with AngularJS

Free

Angular Styling & Animations (for Angular 2+)

$11.99

Learn to build an e-commerce app with .Net Core and Angular

$11.99

The Modern Angular Bootcamp [2021]

$11.99

Angular (Full App) with Angular Material, Angularfire & NgRx

$11.99

Front-End JavaScript Frameworks: Angular

Free

icon
Reviews

4.4

118 total reviews

5 star 4 star 3 star 2 star 1 star
% Complete
% Complete
% Complete
% Complete
% Complete

By Jonathan Flores on 11/21/2020

Enjoy the slow pace, and clear instruction. Thank you for you content!

By Ramana basu on 11/14/2020

it is helped to lot for improving unit testing .

By Paco Marcos on 11/7/2020

It would have saved me frustration and time if you put ".mat-tab-body-active .mat-card-title" earlier in the course when writing the initial tests for home.component.spec.ts instead of only querying .mat-card-title. Otherwise, good job and awesome course!

By Nupur Singhal on 10/22/2020

good

By Bugu Wang on 10/20/2020

Clear explained unit testing, end to end testing.

By Andres Felipe Bayona Chinchilla on 10/12/2020

The cli test no working how i expect

By Adrin Dantas on 10/5/2020

Another in depth masterclass that deliver the goods. :)

By Juan Manuel Muoz on 10/5/2020

The example not run correctly. When you do 'ng serve' there are a lot of messages 404 because not found some recourses from the API. The angulars root is broke too.

By Julian on 9/24/2020

It have the essentials to understand how to make unit testing in angular, and also, e2e test. Is well explained and is easy to understand. A pretty good Course overall.

By Joe Charles Sleiman on 9/22/2020

Yes, as I need

By Jorge Sarmiento on 9/22/2020

Great course of unit test whit jasmine, thank's, but, the course section "crypress" ,is very short and not represents any real context

By Voltaire Fernandez Ignacio on 9/21/2020

Detailed explanation on how to test each component using jasmine, same with e2e using cypress on a different situation.