Unit Testing Principles, Practices, and Patterns video edition

Video description

In Video Editions the narrator reads the book while the content, figures, code listings, diagrams, and text appear on the screen. Like an audiobook that you can also watch as a video.

This book is an indispensable resource.
Greg Wright, Kainos Software Ltd.

Unit Testing Principles, Patterns and Practices shows you how to refine your existing unit tests by implementing modern best practices. You’ll learn to spot which tests are performing, which need refactoring, and which need to be deleted entirely! Upgrade your testing suite with new testing styles, good patterns, and reliable automated testing.

about the technology

Great testing practices will help maximize your project quality and delivery speed. Wrong tests will break your code, multiply bugs, and increase time and costs. You owe it to yourself—and your projects—to learn how to do excellent unit testing to increase your productivity and the end-to-end quality of your software.

about the book

Unit Testing Principles, Patterns and Practices teaches you to design and write tests that target the domain model and other key areas of your code base. In this clearly written guide, you learn to develop professional-quality test suites, safely automate your testing process, and integrate testing throughout the application life cycle. As you adopt a testing mindset, you’ll be amazed at how better tests cause you to write better code.

what's inside

  • Universal guidelines to assess any unit test
  • Testing to identify and avoid anti-patterns
  • Refactoring tests along with the production code
  • Using integration tests to verify the whole system

about the audience

For developers who know the basics of unit testing. The C# examples apply to any language.

about the author

Vladimir Khorikov is an author, blogger, and Microsoft MVP. He has mentored numerous teams on the ins and outs of unit testing.

Serves as a valuable and humbling encouragement to double down and test well, something we need no matter how experienced we may be.
Mark Nenadov, BorderConnect

I wish I had this book twenty years ago when I was starting my career in software development.
Conor Redmond, Incomm Product Control

This is the kind of book on unit testing I have been waiting on for a long time.
Jeremy Lange, G2

NARRATED BY NATE COLITTO

Table of contents

  1. Part 1 The bigger picture
  2. Chapter 1 The goal of unit testing
  3. Chapter 1 The goal of unit testing!
  4. Chapter 1 Using coverage metrics to measure test suite quality
  5. Chapter 1 Problems with coverage metrics
  6. Chapter 1 What makes a successful test suite?
  7. Chapter 2 What is a unit test?
  8. Chapter 2 The isolation issue: The classical take
  9. Chapter 2 The classical and London schools of unit testing
  10. Chapter 2 Contrasting the classical and London schools of unit testing
  11. Chapter 2 Integration tests in the two schools
  12. Chapter 3 The anatomy of a unit test
  13. Chapter 3 How large should each section be?
  14. Chapter 3 Exploring the xUnit testing framework
  15. Chapter 3 Naming a unit test
  16. Chapter 3 Refactoring to parameterized tests
  17. Part 2 Making your tests work for you
  18. Chapter 4 The four pillars of a good unit test
  19. Chapter 4 What causes false positives?
  20. Chapter 4 The intrinsic connection between the first two attributes
  21. Chapter 4 In search of an ideal test
  22. Chapter 4 Extreme case #3: Brittle tests
  23. Chapter 4 Exploring well-known test automation concepts
  24. Chapter 5 Mocks and test fragility
  25. Chapter 5 Observable behavior vs. implementation details
  26. Chapter 5 The relationship between mocks and test fragility
  27. Chapter 5 The classical vs. London schools of unit testing, revisited
  28. Chapter 6 Styles of unit testing
  29. Chapter 6 Comparing the three styles of unit testing
  30. Chapter 6 Understanding functional architecture
  31. Chapter 6 Transitioning to functional architecture and output-based testing
  32. Chapter 6 Understanding the drawbacks of functional architecture
  33. Chapter 7 Refactoring toward valuable unit tests
  34. Chapter 7 Refactoring toward valuable unit tests!
  35. Chapter 7 Take 3: Removing complexity from the application service
  36. Chapter 7 Analysis of optimal unit test coverage
  37. Chapter 7 Using the CanExecute/Execute pattern
  38. Chapter 7 Conclusion
  39. Part 3 Integration testing
  40. Chapter 8 Why integration testing?
  41. Chapter 8 Which out-of-process dependencies to test directly
  42. Chapter 8 Integration testing: An example
  43. Chapter 8 Using interfaces to abstract dependencies
  44. Chapter 8 Integration testing best practices
  45. Chapter 8 How to test logging functionality
  46. Chapter 8 Conclusion
  47. Chapter 9 Mocking best practices
  48. Chapter 9 Mocking best practices!
  49. Chapter 10 Testing the database
  50. Chapter 10 Database transaction management
  51. Chapter 10 Test data life cycle
  52. Chapter 10 Common database testing questions
  53. Part 4 Unit testing anti-patterns
  54. Chapter 11 Unit testing anti-patterns
  55. Chapter 11 Exposing private state
  56. Chapter 11 Mocking concrete classes

Product information

  • Title: Unit Testing Principles, Practices, and Patterns video edition
  • Author(s): Vladimir Khorikov
  • Release date: June 2020
  • Publisher(s): Manning Publications
  • ISBN: None