Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Unit Testing Tutorial

Scrimba via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn unit testing fundamentals through this comprehensive tutorial that teaches you to write tests confidently using the Jasmine testing framework. Master the essential concepts of unit testing including the three core parts of testing, test organization with describe() functions, and data setup using beforeEach(). Explore advanced testing techniques such as spies for monitoring function calls, mocks for simulating dependencies, and various matchers like toBeDefined() and toEqual() for assertions. Practice your skills through hands-on challenges that reinforce key concepts including writing your first unit tests, grouping tests effectively, and implementing spies and mocks in real scenarios. Discover best practices for skipping and focusing tests during development, and gain the confidence to integrate unit testing into your coding workflow to reduce stress and improve code quality.

Syllabus

What is unit testing | Unit testing tutorial
Introduction to the Jasmine testing suite | Unit testing tutorial
Setting Up Jasmine from scratch | Unit testing tutorial
The 3 parts of testing | Unit testing tutorial
Testing Setup Breakdown | Unit testing tutorial
Grouping unit tests with describe() | Unit testing tutorial
Grouping unit tests with describe() (Challenge) | Unit testing tutorial
Unit Test example | Unit testing tutorial
Write a unit test (Challenge) | Unit testing tutorial
Setting Up testing data with beforeEach() | Unit testing tutorial
Set up testing data with beforeEach() (Challenge) | Unit testing tutorial
Skipping and Focusing in unit testing | Unit testing tutorial
Unit testing: Spies ️ | Unit testing tutorial
Unit testing: Spy Challenge ️ | Unit testing tutorial
Mocks in unit testing + live debug | Unit testing tutorial
Mocks in unit testing (Challenge) | Unit testing tutorial
Additional matchers in unit testing: toBeDefined() & toEqual() | Unit testing tutorial
Use toBeDefined() & toEqual() in unit testing (Challenge) | Unit testing tutorial
How to write unit tests | Unit testing tutorial

Taught by

Scrimba

Reviews

Start your review of Unit Testing Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.