Building a Pragmatic Unit Test Suite
This course serves as a descriptive, in-depth guideline for pragmatic unit testing.
What you'll learn
Unit testing is everywhere. It is one of the most widely spread engineering practices in the world of software development. It’s important to know how to apply it in a way that helps, and not prevents you from building successful products. This course, Building a Pragmatic Unit Test Suite, is going to show you how to do that. First, you'll learn about what makes a test valuable. Next, you'll learn about the different styles of unit testing, as well as the use of mocks. Finally, you'll wrap up the course by learning about integration testing and unit testing anti-patterns. By the end of this course, you’ll know how to make the most out of your unit and integration tests.
Table of contents
- Introduction 0m
- Styles of Unit Testing 3m
- Hexagonal Architecture 5m
- What Is an Implementation Detail? 7m
- Styles of Unit Testing: Comparison 5m
- Collaboration Verification 7m
- Comparing Styles of Unit Testing: Results 2m
- Black-box vs. White-box Testing 2m
- Unit Testing and Business Requirements 2m
- Summary 3m
- Introduction 1m
- Refactoring Plan 4m
- Refactoring the Stock Event Class 7m
- Recap: Refactoring the Stock Event Class 1m
- Introducing the Stock Command Class 5m
- Recap: Introducing the Stock Command Class 1m
- Refactoring the Buyer Class 15m
- Recap: Refactoring the Buyer Class 4m
- Refactoring the Rest of the Code Base 9m
- Recap: Refactoring the Rest of the Code Base 1m
- Refactoring Results 5m
- Summary 1m
- Introduction 0m
- Testing the Application Services Layer 5m
- New Requirement: Working with a Database 5m
- Recap: Working with a Database 1m
- Integration Test Suite: The First Attempt 6m
- Integration Test Suite Analysis 5m
- Types of External Dependencies 2m
- How to Test a Database 4m
- Refactoring the Integration Test Suite 5m
- Refactoring Results 2m
- Summary 2m