Unit testing : principles, practices, and patterns /
Khorikov, Vladimir,author.
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.
Includes index.
Part 1. The bigger picture.  The goal of unit testing -- What is a unit test? -- The anatomy of a unit test -- Part 2. Making your tests work for you.  The four pillars of a good unit test -- Mocks and test fragility -- Styles of unit testing -- Refactoring toward valuable unit tests -- Part 3. Integration testing.  Why integration testing? -- Mocking best practices -- Testing the database -- Part 4. Unit testing anti-patterns.  Unit testing anti-patterns.
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.
Web sites
User interfaces (Computer systems)