Udemy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Development
Web Development Data Science Mobile Development Programming Languages Game Development Database Design & Development Software Testing Software Engineering Development Tools No-Code Development
Business
Entrepreneurship Communications Management Sales Business Strategy Operations Project Management Business Law Business Analytics & Intelligence Human Resources Industry E-Commerce Media Real Estate Other Business
Finance & Accounting
Accounting & Bookkeeping Compliance Cryptocurrency & Blockchain Economics Finance Finance Cert & Exam Prep Financial Modeling & Analysis Investing & Trading Money Management Tools Taxes Other Finance & Accounting
IT & Software
IT Certification Network & Security Hardware Operating Systems Other IT & Software
Office Productivity
Microsoft Apple Google SAP Oracle Other Office Productivity
Personal Development
Personal Transformation Personal Productivity Leadership Career Development Parenting & Relationships Happiness Esoteric Practices Religion & Spirituality Personal Brand Building Creativity Influence Self Esteem & Confidence Stress Management Memory & Study Skills Motivation Other Personal Development
Design
Web Design Graphic Design & Illustration Design Tools User Experience Design Game Design Design Thinking 3D & Animation Fashion Design Architectural Design Interior Design Other Design
Marketing
Digital Marketing Search Engine Optimization Social Media Marketing Branding Marketing Fundamentals Marketing Analytics & Automation Public Relations Advertising Video & Mobile Marketing Content Marketing Growth Hacking Affiliate Marketing Product Marketing Other Marketing
Lifestyle
Arts & Crafts Beauty & Makeup Esoteric Practices Food & Beverage Gaming Home Improvement Pet Care & Training Travel Other Lifestyle
Photography & Video
Digital Photography Photography Portrait Photography Photography Tools Commercial Photography Video Design Other Photography & Video
Health & Fitness
Fitness General Health Sports Nutrition Yoga Mental Health Dieting Self Defense Safety & First Aid Dance Meditation Other Health & Fitness
Music
Instruments Music Production Music Fundamentals Vocal Music Techniques Music Software Other Music
Teaching & Academics
Engineering Humanities Math Science Online Education Social Science Language Teacher Training Test Prep Other Teaching & Academics
AWS Certification Microsoft Certification AWS Certified Solutions Architect - Associate AWS Certified Cloud Practitioner CompTIA A+ Cisco CCNA Amazon AWS AWS Certified Developer - Associate CompTIA Security+
Photoshop Graphic Design Adobe Illustrator Drawing Digital Painting InDesign Character Design Canva Figure Drawing
Life Coach Training Neuro-Linguistic Programming Mindfulness Personal Development Personal Transformation Meditation Life Purpose Neuroscience Coaching
Web Development JavaScript React CSS Angular PHP Node.Js WordPress Python
Google Flutter Android Development iOS Development Swift React Native Dart Programming Language Mobile Development Kotlin SwiftUI
Digital Marketing Google Ads (Adwords) Social Media Marketing Google Ads (AdWords) Certification Marketing Strategy Internet Marketing YouTube Marketing Email Marketing Google Analytics
SQL Microsoft Power BI Tableau Business Analysis Business Intelligence MySQL Data Analysis Data Modeling Big Data
Business Fundamentals Entrepreneurship Fundamentals Business Strategy Online Business Business Plan Startup Freelancing Blogging Home Business
Unity Game Development Fundamentals Unreal Engine C# 3D Game Development C++ 2D Game Development Unreal Engine Blueprints Blender
2020-11-17 12:52:44
30-Day Money-Back Guarantee

This course includes:

  • 5 hours on-demand video
  • 4 articles
  • Full lifetime access
  • Access on mobile and TV
Development Web Development Angular

Angular Testing Masterclass (with FREE E-Book)

A complete guide to Angular 11 Unit Testing and End to End (E2E) Testing, including Testing best practices and CI
Rating: 4.5 out of 54.5 (737 ratings)
3,375 students
Created by Angular University
Last updated 1/2021
English
English [Auto]
30-Day Money-Back Guarantee

What you'll 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

Course content

7 sections • 45 lectures • 5h 7m total length

  • Preview04:23
  • IMPORTANT - Recommended Software Versions
    00:18
  • Preview06:27
  • The Typescript Jumpstart Ebook
    03:20
  • Preview07:28
  • Step-by-Step Implementation of our First Jasmine Specification
    Preview06:56
  • Unit Testing with Jasmine - Introduction to Jasmine Spies
    Preview09:43
  • Structuring Angular Unit Tests - Test Setup using beforeEach
    06:04
  • Using Dependency Injection in Angular Testing - The Angular TestBed
    07:10
  • Angular Unit Testing Best Practices and commonly used Test Utilities
    06:58

  • Testing Angular HTTP Services - Test Setup with the HttpClientTestingModule
    05:26
  • Angular HTTP Service Testing - Step-by-Step Implementation
    09:52
  • Preventing Unintended HTTP Requests using the HTTP Testing Controller
    04:37
  • Testing Angular HTTP Data Modification Services
    05:15
  • Angular HTTP Services - Testing Error Handling
    06:01
  • Angular HTTP Testing - Checking HTTP Request Parameters
    08:47

  • Introduction to Angular Component Testing - Presentational Components
    07:17
  • Angular Component Testing - Test Setup with the async Test Utility
    08:43
  • Angular Component Testing - DOM Interaction
    05:28
  • Angular Test Debugging - How to Trigger Change Detection?
    05:00
  • Angular Component Testing - Course Card List Test Suite Conclusion
    06:01
  • Testing Angular Smart or Container Components - Test Setup
    11:29
  • Mocking Observable-based Services - Testing the Home Component
    08:38
  • Container Component Test Suite - The Home Component
    03:30
  • Simulating User DOM Interaction in Angular Unit Tests
    08:54

  • Introduction to Asynchronous Angular Testing - Understanding Jasmine done()
    08:33
  • Understanding Asynchronous Testing - a Simple Example
    06:52
  • Understanding the Angular fakeAsync Testing Zone
    13:29
  • Testing Promised-based code - Introduction to Microtasks
    13:55
  • Testing Promise-based code with fakeAsync - Understanding flushMicrotasks
    03:57
  • Testing Asynchronous Code with fakeAsync - Full Example
    06:12
  • Using fakeAsync to test Asynchronous Observables
    05:35
  • fakeAsync in Practice - Fixing the Home component tests
    10:22
  • IMPORTANT - async() renamed to waitForAsync()
    00:26
  • Understanding the Angular waitForAsync() Test Zone
    13:03

  • Angular (E2E) End to End Testing - Getting Started with Cypress
    06:35
  • Angular E2E (End To End Test) Hello World with Cypress
    08:50
  • How to Mock an HTTP Backend using Cypress
    08:12
  • Simulating User Interaction in Cypress End to End Tests
    05:47

  • Angular CLI Code Coverage and Deployment in Production Mode
    07:18
  • Preparing an Angular Application for Continuous Integration (CI)
    07:28
  • Running Cypress E2E Tests using Travis CI
    05:33

  • Other Courses
    02:17
  • Bonus Lecture
    01:28
  • Angular Testing Course - Conclusions and Key Takeaways
    07:55

Requirements

  • No prior knowledge of Testing is needed
  • Prior knowledge of Angular is important

Description

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 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 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!

Who this course is for:

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

Featured review

Tony Santiago
Tony Santiago
59 courses
7 reviews
Rating: 5.0 out of 5a year ago
It was a great course, it helped be better understand how tests are written now a days. Lots of stuff is made easier from the my time learning early versions of Selenium. I was hoping to see how material dialogs were tested, but, overall the course expanded my knowledge and helps me develop better code with a testing mindset.

Instructor

Angular University
Best Selling Angular Courses | 95,000+ students | 16 courses
Angular University
  • 4.5 Instructor Rating
  • 14,953 Reviews
  • 99,437 Students
  • 17 Courses

About the Angular University:

The Angular University aims to be the one place that you go in order to learn and keep up with the whole Angular ecosystem. 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 a Software Developer with 17 years of experience, very seasoned building user interfaces with Angular. I've worked as a Frontend Developer/Architect in a large variety of enterprise projects throughout the years.   

I worked on a ton of projects, everything from single page applications to help build the European Criminal Record Information Exchange System, to brand new e-banking portals, to corporate banking portals, and more. I've been a key part of internal framework teams that built frameworks for in-house departments of tens of developers.

I also love to teach, write and talk about technology.  I am looking forward to be your Angular instructor,

Kind Regards,

Vasco

  • Udemy for Business
  • Teach on Udemy
  • Get the app
  • About us
  • Contact us
  • Careers
  • Blog
  • Help and Support
  • Affiliate
  • Terms
  • Privacy policy
  • Cookie settings
  • Sitemap
  • Featured courses
Udemy
© 2021 Udemy, Inc.