Learning unit testing with Jasmine

Learning unit testing with Jasmine

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 0h 53m | 144 MB

All right, welcome to the Introduction to Unit Testing in Jasmine course. This is going to be a great course to get you some practical skills that you can use in the workplace, and just become an overall better developer. So why unit tests? Really, what does it provide us? Why is this a skill worth learning? Four things. One, is going to increase your code confidence so that when you write code, you know it’s going to work. You’re going to have less bugs in your code over time. It’s a very in demand skill, and it leads to faster development, really for great things. We’re going to be covering the fundamentals of unit testing, which is test set up, groupings, and of course, test cases. And if you don’t know what any of this is, don’t worry about it, we’re going to be going over it in the course. Why Jasmine? There’s a lot of testing frameworks out there, but why are we using Jasmine for the introduction? Well, Jest is a very popular testing library, and Jasmine is sort of the foundation of it. So it’ll transfer over well. Tests in it will test logic. You don’t really need to test a DOM with it. And it’s very simple because of that. I think simplicity is key when starting something new, and this is a good library to start with. We’re going to be covering the three A’s, the Arrange, Act, Assert pattern when it talks about setting up your tests, and how that works, and just being aware of that to make your life easier. As far as the course outline goes, we’re going to be talking about the test grouping, test cases, debugging our tests with things like focus and skip, spies and much more in this course, including a bunch of challenges so that really, some of this knowledge sticks. A little bit about me and why I’m qualified to teach this course. My name is Dylan Israel. I’m a front end engineer with Amazon. I’m also a content creator on YouTube, podcasts, courses, a whole bunch of stuff software-related. A mentor on MentorCruise and a mentee, but I’m also a speaker and a animal lover. Those are my two dogs, Gator and Boise. With that being said guys, let’s have some fun, let’s learn some testing, and let’s get going.

Table of Contents

Introduction
1 Learning unit testing with Jasmine
2 Prerequisite knowledge

1. Setting Up Jasmine
3 Setting up Jasmine from scratch
4 Arrange, act, and assert pattern
5 Grouping with describe()
6 Challenge Grouping with describe()
7 Your first test
8 Challenge Your first test

2. Data Setup
9 Challenge Additional matchers
10 Data setup with beforeEach
11 Challenge Data setup with beforeEach
12 Skipping and focusing introduction
13 Challenge Skipping and focusing introduction
14 Spies
15 Challenge Spies
16 Mocks
17 Challenge Mocks
18 Additional matchers

3. Moving Forward
19 Final challenge
20 What’s next

Homepage