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

Ruby on Rails: An Introduction
Johns Hopkins University via Coursera
Internet of Things Capstone: Build a Mobile Surveillance System
University of California, San Diego via Coursera
Engineering Maintainable Android Apps
Vanderbilt University via Coursera
Orientação a Objetos com Java
Instituto Tecnológico de Aeronáutica via Coursera
TDD – Desenvolvimento de Software Guiado por Testes
Instituto Tecnológico de Aeronáutica via Coursera