Writing Highly Maintainable Unit Tests

This course will teach you how to develop maintainable and sustainable tests as your production code grows and develops.
Course info
Rating
(118)
Level
Intermediate
Updated
Mar 3, 2017
Duration
6h 16m
Table of contents
Course Overview
Understanding Provable Code Correctness
The Importance of Knowing What to Test
The Pros and Cons of White-Box Testing
Modeling Class Dependencies in Tests
Gaining Resilience by Testing Against Abstract Data Types
Testing Against Interfaces to Simplify Maintenance
Implementing Abstract Interfaces TDD Style
Testing Compliance to Design Principles
Design by Contract from Testing Perspective: Binding Theory to Practice
Description
Course info
Rating
(118)
Level
Intermediate
Updated
Mar 3, 2017
Duration
6h 16m
Description

Take advantage of the knowledge this course gives you and get equipped with the theory and practical skills you need to start making test suites manageable for the life of your product. In this course, Writing Highly Maintainable Unit Tests, you'll learn advanced techniques in unit testing. First, you'll explore how to turn production code testable in the first place. Next, you'll discover how to make tests survive future implementation changes. Then, you'll learn how to avoid nearly all code duplications in tests. Finally, you'll design reusable testing libraries. By the end of this course, you'll process deep understanding that will make your tests better in many ways.

About the author
About the author

Zoran Horvat is Principal consultant at Coding Helmet Consultancy, speaker and author of 100+ articles, and independent trainer on .NET technology stack.

More from the author
Mastering Object-oriented Programming in Java
Intermediate
3h 21m
Nov 6, 2019
Making Your Java Code More Object-oriented
Intermediate
2h 13m
Aug 26, 2019
Writing Purely Functional Code in C#
Advanced
4h 15m
May 23, 2018
More courses by Zoran Horvat
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone, my name is Zoran Horvat. Welcome to my course Writing Highly Maintainable Unit Tests. I'm a principal consultant at Coding Helmet, and I have more than 15 years of programming career behind, and that period is filled with projects in which I struggled to write and to maintain large suites of tests. This course is about that struggle. I'm showing you where complexity and troubles lie in tests, so that you don't have to repeat my mistakes. Some of the major topics that we will cover include turning production code testable in the first place, making tests survive future implementation changes, avoiding nearly all code duplication in tests, and designing reusable testing libraries. By the end of this course, you will possess deep understanding that will make your tests better in many ways. They will signal defects with more confidence, and they will rarely fail after modifying production code. What else could you wish for? Before beginning the course, you should have working knowledge in writing unit tests, and a basic understanding of at least one mocking framework and testing framework. I hope you will join me on this journey to learn advanced techniques in unit testing with the Writing Highly Maintainable Unit Tests course at Pluralsight.