Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Mocking Frameworks Considered Harmful

ACCU Conference via YouTube

Overview

Explore the complexities of mocking frameworks in software development through this ACCU Conference talk. Delve into the challenges of writing effective unit tests for existing code bases and external libraries. Learn about test stubs, mocking frameworks like GoogleMock, and their associated domain-specific languages. Examine the potential drawbacks of using mocking frameworks, including learning curves, debugging difficulties, and increased code coupling. Discover alternative approaches, such as Cevelop's Mockator and simple C++ solutions, for refactoring existing code and creating test stubs or mocks. Gain insights into when and why to avoid mocking, and understand various refactoring techniques like dependency injection, object seams, and template seams. Analyze the pros and cons of different testing approaches to improve your software development practices and create more maintainable, testable code.

Syllabus

Introduction
Mocking frameworks
Mocks arent stops
The Order
Phase Tests
When should I test
Testable
Configurable tests
Dependency injection
Gene Mauch
Michael Feathers
compiled
assert
macros
plain code
refactoring
walking
design limitations

Taught by

ACCU Conference

Reviews

Start your review of Mocking Frameworks Considered Harmful

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.