Login

Lost your password?
Don't have an account? Sign Up

Testing Angular 2+ Apps with Jasmine and Karma | Mosh

?Get the COMPLETE COURSE (60% OFF – LIMITED TIME):

A step-by-step and pragmatic introduction to unit testing Angular apps.

01:11 Introduction to Automated Testing
08:38 Different Types of Tests
14:40 Fundamentals of Unit Testing with Jasmine
22:24 Testing Strings and Arrays

This video is part of my Udemy course "Testing Angular Apps". You can get the complete course with a discount here:

You can find all my courses here:

Stay in touch:

https://www.educational.guru

21 comments

  1. AVI

    This is a great tutorial, I wanted to dive deeper and bought your course on Udemy – there is so much more on the Unit Testing topic. I heartily recommend it to all interested! (great deal by using the link in the description).
    You’re a great teacher Mosh!

  2. Chadwick Rider

    This was a really good video that addresses a lot of real word questions and issues.
    I love the part about “you’re not coding for fun, your job is to deliver”. So spot-on, that perspective comes with experience. Thanks Mosh!

  3. dewinchy

    I very liked that at the beginning you clarify, why someone would need automated tests and why someone would not need them. That’s pretty true and I think you could copy that part in a separate video and release that. That has nothing to do with Angular, so others may find that part interesting too.

    1. Adam Pond

      Good question and something many people wonder about.

      Unit tests and integration tests are testing for different things. It’s like saying “do I need to have a door in a car… I could just get out of the boot”. Anyone would say, well, you “could” get out of the boot, but it’s quite cumbersome to do so and will take you much longer each time you need to get in and out of the car.

      Integration tests are more costly to maintain and run, so the majority of your testing can and should be in unit tests, and your integration tests cover just that, the interractions and integarations between components.

  4. Leandro Vieira

    That’s one hell of an intro abouth this subject. Congrats. I come from Java where we write tests before code (TDD) in our team. And I’m learning Ionic for myself. I endep up in this video to learn how to test with Angular. Didn’t watch it all, only the intro, and I’m amazed so far. Thank you! Will watch the entire video later.

Leave a Comment

Your email address will not be published. Required fields are marked *

*
*