Mocking Frameworks Considered Harmful
Offered By: ACCU Conference via YouTube
Course Description
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
Related Courses
Khronos Sycl Language Framework for C++ Accelerators - Take Advantage of All the MIPSACCU Conference via YouTube Space Invaders - The C++20 Spaceship Operator is Upon Us
ACCU Conference via YouTube Grinding, Farming, and Alliances - Become a Better Programmer by Using Words and Ideas From Casual Gaming
ACCU Conference via YouTube Designing for C++ Concurrency Using Message Passing
ACCU Conference via YouTube Productivity in C++ Game Development - Inside the Mind of an AAA Game Developer
ACCU Conference via YouTube