Exploring Mocks in Unit Testing is a collection of three chapters from two Manning books chosen by Microsoft MVP and author Vladimir Khorikov. This free mini ebook zooms in on what mocks are and how you should use them, maximizing their value and minimizing their cost, and how to choose the best mocking framework for your needs. By mastering mocks, you’ll begin to write better code, increase your productivity, and improve the overall quality of your software. This free mini ebook is the perfect first step!
The Art of Unit Testing, Third Edition shows you how to create readable and maintainable tests. It goes well beyond basic test creation into organization-wide test strategies, troubleshooting, working with legacy code, and “merciless” refactoring. You’ll love the practical examples and familiar scenarios that make testing come alive as you read. This third edition has been updated with techniques specific to object-oriented, functional, and modular coding styles. The examples use JavaScript.
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.