Testing Practices and Principles

Testing Practices and Principles

English | MP4 | AVC 1920×1080 | AAC 48KHz 2ch | 3h 39m | 1.05 GB

Learn the principles and best practices for writing maintainable test applications to catch errors before your product reaches the end user! Follow along with Kent C. Dodds and learn the fundamentals behind tests and testing frameworks, the distinctions of different forms of testing and when to use them appropriately to ensure your tests give you the confidence you need. You will also learn to write unit and integration tests with the popular Jest testing framework, mock dependencies, and use test-driven development to write new features and help find bugs!

Table of Contents

Intro to Testing
1 Introduction
2 Automated Testing
3 Your First Test Exercise
4 Your First Test Solution
5 Coding an Assertion Library
6 Coding a Testing Framework

Unit Tests
7 Jest Testing Framework
8 Course Code Walkthrough
9 Unit Test Demo
10 Writing a Basic Unit Test Exercise
11 Writing a Basic Unit Test Solution
12 Test Factories & Colocating Tests Q&A
13 Code Coverage

Mocks
14 Monkey Patch a Mock Exercise
15 Monkey Path a Mock Solution
16 Asserting Calling a Mock Exercise
17 Asserting Calling a Mock Solution
18 Using Jest spyOn
19 Using Jest Mock
20 Jest Q&A
21 Using a mocks directory
22 More Mocking with Users

Testing Practices
23 Unit Tests for Express Middleware
24 Unit Tests for Express Middleware Solution
25 Test Object Factories
26 Test-Driven Development
27 Test-Driven Development Solution

Integration Tests
28 Basic Integration Test for a Node Server

Wrapping Up
29 Additional Resources and Q&A