Testing Angular 4 (previously Angular 2) Apps with Jasmine (Udemy.com)
Learn to write unit and integration tests for your Angular apps and deploy them with confidence
Created by: Mosh Hamedani
Last updated April 2018
What you will learn
- Write clean and maintainable tests for your Angular apps
- Examine how much of your code is covered by tests
- Write tests for re-usable components
- Write tests for component templates
- Write tests for forms
- Write tests for confirmation boxes
- Write tests for the navigation
- Write tests for attribute directives
- Work with asynchronous operations
- Provide fake dependencies to components under test
- Use spies to track function calls or replace functions
How it compares
Against the other 95 rated Udemy courses in Angular on CourseDuck:
- Rating4.5 out of 5higher than 55% of them
- Reviews5,964#21 of 96 by number of reviews
- Length2.2 hoursshorter than 90% of them
- Last updatedApril 2018earlier than 72% of them
Quality Score
Overall Score : 90 / 100
Course Description
As your application grows in complexity, the cost of manual testing increases exponentially. Adding a new feature or fixing a bug may break several other places in the application, and covering all those edge cases with manual testing ends up being extremely painful and nearly impossible.
Automated testing is a practice that has been adopted by a lot of successful software development teams over the past decade. You simply write code to test your application, and then run those tests in an automated fashion.
Initially, your development time increases a bit because you need to write extra code to test your production code. However, that is the cost that you pay only once. Once you have those tests in place, you can run several thousands of them in just a few seconds over and over. Compare that with the time required to manually test every bit of your application!
With automated testing, you spend less time fixing bugs and doing manual repetitive tests every time you add a new feature or fix a bug. Instead, you can spend your time doing more fun things.
In this course, Mosh, author of several best selling courses on Udemy, takes you from the ground and gives you a solid foundation to write automated tests for your Angular apps. Whether you're an absolute beginner or have some familiarity with automated testing, this course will give you all the necessary skills to write automated tests for your Angular apps.
You'll learn about:
- Automated testing concepts and tools
- What to test and how
- Writing clean, maintainable and trustworthy tests that don't lie
- Tracking how much of your code is covered by tests
- Testing re-usable components
- Testing templates
- Testing forms
- Testing confirmation boxes
- Testing navigation
- Testing attribute directives
- Mocking dependencies
- Working with asynchronous operations
If you've taken any of Mosh's courses before, you know what you get. High quality video and audio, outstanding delivery with no mocking around.
30-DAY FULL MONEY-BACK GUARANTEE
This course comes with a 30-day full money-back guarantee. Take the course, watch every lecture and if you feel like you haven't gained the confidence to write automated tests for your Angular apps, ask for a full refund within 30 days. All your money back, no questions asked.
ABOUT YOUR INSTRUCTOR
Mosh (Moshfegh) Hamedani is a software engineer with 15 years of professional experience. He is the author of several best-selling courses on Udemy and Pluralsight with over 74,000 students in 172 countries. His students describe him as a passionate, pragmatic and motivational instructor.
So, do you want to write automated tests for your Angular apps?
Enroll in the course now and you'll start writing your first test in 10 minutes!
Instructor Details
- 4.5 Rating
5,964 Reviews
Mosh Hamedani
Hi! I'm Mosh, a software engineer with over 20 years of experience. I'm all about clear, concise, practical coding tutorials – no fluff, just the good stuff! My courses focus on real-world projects and the skills that will get you hired. I've helped millions of students transform their careers. Want to level up your skills? Check out my courses and get started.
More courses by Mosh Hamedani
C# Basics for Beginners: Learn C# Fundamentals by Coding (2020)
4.5 (80,103 Reviews)
Provider: Udemy
Time: 5.4h
$149.99
C# Intermediate: Classes, Interfaces and OOP (2019)
4.6 (41,921 Reviews)
Provider: Udemy
Time: 6h
$109.99
The Complete Angular Course: Beginner to Advanced (2018)
4.5 (28,156 Reviews)
Provider: Udemy
Time: 29.6h
$124.99
C# Advanced Topics: Prepare for Technical Interviews (2019)
4.5 (25,212 Reviews)
Provider: Udemy
Time: 3.1h
$94.99
More Angular courses
Single Page Web Applications with AngularJS (2018)
5.0 (480 Reviews)
Provider: Coursera
Time: 15.5h
Free
Angular (Full App) with Angular Material, Angularfire & NgRx (2024)
4.7 (8,695 Reviews)
Provider: Udemy
Time: 11.3h
$14.99
Learn to build an e-commerce app with .Net Core and Angular (2026)
4.7 (4,985 Reviews)
Provider: Udemy
Time: 31.1h
$13.99
Complete Angular 22 - Ultimate Guide - with Real World App (2026)
4.7 (4,509 Reviews)
Provider: Udemy
Time: 43.5h
$84.99
Reviews
By Mike Luddy on 6/14/2022
Succinct overview of various testing scenarios for both unit and integration tests. The material covered was a good balance of breadth and density, but I deducted half a star because the code resources provided were out of date and no longer functional. The broken resources means that the student must stop the course and seek resolutions to update the code examples before following along with the lectures.
By Jon Austen on 11/14/2020
Starts out really basic.
By AppDev GTBANK on 11/14/2020
Excellent and well precise course
By Subhrojit Bhattacharjee on 10/24/2020
yep it's good try to show more coding procedures rather than simple lectures,because it will difficult to implement in real code
By Meghana Madipelli on 10/23/2020
Excellent
By L Shivakumar Reddy on 10/21/2020
Great Course.
By Shantanu Dutta on 10/15/2020
Good course with proper description of content
By Ahmed Younis on 10/13/2020
the first lecture was missing the angular.json file. so the ng test command obviously wouldnt work. I hope the instructor can correct this mistake so students can follow along with his instructions
By Chris Scrivo on 9/18/2020
Clear, well written.
By Axel Warneke on 9/17/2020
Excellent course to start with Unit Testing, very clear concepts.
By Jeremy Bertin on 9/11/2020
Well, I heard much about Mosh and he is not failing me on his reputation. The course is so clear and neat. It is a real pleasure to listen to him. Everything is so clear. I really recommend that course and can't wait to do some other courses :)
By John J Fuentes G on 9/9/2020
Good more if you have some previous knowledge of it (my case)












