YoVDO

How to Write Unit Tests - Unit Testing Tutorial

Offered By: Scrimba via YouTube

Tags

Unit Testing Courses Jasmine Courses

Course Description

Overview

Learn the fundamentals of unit testing in this comprehensive tutorial. Discover why testing is crucial for all developers, regardless of experience level, and how it enhances code confidence, reduces stress, and accelerates delivery. Explore key concepts including test grouping, test cases, debugging with focus, spies, and mocks. Practice your skills with numerous coding challenges throughout the course. Gain hands-on experience setting up Jasmine from scratch, understanding the three parts of testing, and using various matchers like toBeDefined() and toEqual(). By the end of this one-hour and 25-minute tutorial, you'll have a solid foundation in unit testing techniques that you can immediately apply to your projects.

Syllabus

- Introduction to Unit Testing
- Introduction to Jasmine
- Setting up Jasmine from scratch
- Understanding the three parts of testing
- Testing setup breakdown
- Grouping with describe
- Grouping with describe - code challenge
- Our first test
- Our first test - code challenge
- Setting up data with beforeEach
- Setting up data with beforeEach - code challenge
- Skipping and Focussing introduction
- Skipping and Focussing - code challenge
- Unit Testing spies! ️
- Spies - code challenge
- Mocks and debug with me!
- Mocks - code challenge
- Additional matchers: toBeDefined and toEqual
- Additional matchers - code challenge
- Final code challenge
- Unit Testing Outro


Taught by

Scrimba

Related Courses

Desarrollo de páginas con Angular
Universidad Austral via Coursera
Testing Angular 4 (previously Angular 2) Apps with Jasmine
Udemy
Angularjs for Beginners
Udemy
Angular JS: Full-Stack Development with Angular JS and Flask
Udemy
Angular: Building on Azure Microservices
LinkedIn Learning