17. Unit Testing with Python (Emily Bache, 2019)

1. Course Overview: 00:00:00 __ 01. Course Overview 2. Unit Test Fundamentals: 00:01:29 __ 01. What Is a Unit Test 00:04:17 __ 02. First Example Unit Test 00:08:10 __ 03. Explanation of Test Case and Test Runner 00:12:06 __ 04. Exception Checking with assertRaises & Explaination of Test Suite 00:13:50 __ 05. Skipping a Test Case & Explanation of Test Fixture 00:18:26 __ 06. Vocabulary Summary 00:19:24 __ 07. Example of Poor Unit Test Design 00:24:02 __ 08. Better Design with Arrange-Act-Assert 00:26:47 __ 09. Detailed Design of Arrange-Act-Assert Test Parts 00:29:59 __ 10. Module Summary 3. Unit Testing Why and When: 00:30:53 __ 01. Introducing the Module Topics - Why and When 00:32:16 __ 02. Unit Testing Helps You to Understand What to Build 00:35:01 __ 03. Unit Testing Helps You to Document the Units 00:37:08 __ 04. Unit Testing Helps You with Design 00:41:21 __ 05. Unit Testing Helps You Detect Regression 00:44:15 __ 06. Limitations of Unit Testing 00:46:08 __ 07. Unit Testing Is Part of Your Job 00:47:39 __ 08. Test-Last Process 00:49:25 __ 09. Test-First Process 00:51:33 __ 10. Test-Driven Development 00:53:35 __ 11. Automated Build Servers and Continuous Integration 00:57:16 __ 12. Module Summary 4. Unit Testing with pytest: 00:58:01 __ 01. Introducing pytest - a Popular Alternative to unittest 01:00:34 __ 02. First Test Case and Failure Analysis 01:03:54 __ 03. Using PyCharm s Test Runner 01:05:41 __ 04. Additional Kinds of Assertion Including assertRaises 01:08:20 __ 05. Introduction to Test Fixtures 01:10:57 __ 06. Cleaning up Fixture Resources Chaining Fixtures 01:14:42 __ 07. Organzing Test Code for Larger Programs 01:18:18 __ 08. Using Markers to Control Which Tests Are Run 01:22:25 __ 09. Using an HTML Report Plugin & Module Summary 5. Testable Documentation with doctest: 01:23:56 __ 01. Introducing doctest - Embed Unit Tests in Your Docstrings 01:26:51 __ 02. Introduction to Yatzy Example & a First doctest 01:30:08 __ 03. Using a Test Runner to Execute Your Doctests 01:32:13 __ 04. Interpreting Test Failures and Updating Your Docstring 01:34:06 __ 05. Handling Output That Varies Using a Wildcard 01:38:14 __ 06. Handling Random Numbers Dictionaries Floats and Tracebacks 01:42:17 __ 07. Global Options and Directives 01:45:22 __ 08. Regression Testing Your Tutorial Documentation 01:48:59 __ 09. Module Summary 6. Using Test Doubles: 01:49:55 __ 01. What Is a Test Double 01:51:58 __ 02. Example Using a Stub 01:55:43 __ 03. Creating a Stub Using 01:58:12 __ 04. Example Using a Fake 02:02:43 __ 05. Example Using a Dummy 02:05:32 __ 06. Mocks and Spies Give You a Third Kind of Assertion 02:07:35 __ 07. Example Using a Spy 02:13:11 __ 08. Example Using a Mock 02:17:34 __ 09. Overview of All the Types of Test Double 02:19:15 __ 10. Using Monkeypatching to Insert a Test Double 02:23:33 __ 11. Example Using Monkeypatching to Replace a Built-in Function 02:26:08 __ 12. Module Summary 7. Parameterized Tests & Test Coverage: 02:26:51 __ 01. Module Introduction 02:27:18 __ 02. Example Using Parameterized Tests with pytest 02:30:37 __ 03. Example Using Parameterized Tests with unittest 02:32:35 __ 04. Example Measuring Test Coverage 02:35:34 __ 05. Example Measuring Branch Coverage 02:38:51 __ 06. Example Adding Parameterized Tests to Existing Code with Coverage 02:44:35 __ 07. Tracking Coverage Trends 02:46:36 __ 08. Good Uses for Coverage and Alternatives for Assessing Test Quality 02:49:11 __ 09. Module Summary
Back to Top