Unit Testing Angular 2+ with Jasmine + HTML Templates [2021]

Learn to write unit tests in Jasmine for your Angular apps incl. HTML templates

Ratings: 4.01 / 5.00




Description

Wouldn't it be great if you could spend less time fixing bugs and spend more time developing new features instead? Then this is the course for you!

Whether you're an absolute beginner or have some familiarity with unit testing, this course will give you a deeper understanding of unit tests and show you what unit tests to write.

In this course, I'll teach you how you can unit test your own Angular apps using Jasmine. There's no need for any previous knowledge of unit testing, we'll go over everything you need to know.

You'll learn the theory behind unit testing and understand what happens when unit tests run. We'll go through what you need to install to get your app ready for unit testing. We'll set up a reusable unit testing environment and show you how to create mock components and services.

We'll go over many different examples of typescript unit tests you can write using our included example Angular app. And we'll go over unit tests you can write for your HTML templates!

We'll show you how you can automate your unit tests and run them automatically whenever someone makes a pull request before they merge in their changes to check everything still works correctly.

We'll see how we can check we've written unit tests for any code we add and check we've updated any unit tests for the code we change. We will also see how we can prevent a pull request from being merged in if we haven't written unit tests for our new changes.

By the end of the course, you'll learn about:

  • The theory behind unit tests

  • Setting up unit tests in your own app

  • What unit tests to write with examples

  • Writing unit tests for HTML templates

  • Automatically running unit tests using pipelines

  • Ways to make your unit tests run faster

Let me be the first to welcome you to the course! I hope you find it useful and I welcome any feedback and suggestions to improve the course!

What You Will Learn!

  • Creating A Reusable TestBed
  • Creating Mock Components And Services
  • Unit Testing Components And Services
  • Unit Testing HTML Templates
  • Automatically Run Unit Tests Using Pipelines
  • Ways To Make Your Unit Tests Run Faster

Who Should Attend!

  • Anyone who wants to spend less time fixing bugs in their Angular apps
  • Anyone who wants to learn to write unit tests for Angular apps using Jasmine
  • Anyone who wants to write unit tests for HTML templates