I created an easy to use API to help businesses do incredible things with AI.
Testing

Frank de Jonge's perspective on mocking frameworks

Benjamin Crozat
Published on Aug 10, 2023 0 comments Edit on GitHub

Introduction

In this insightful article, Frank de Jonge shares his evolved views on code testing and specifically on the use of mocking frameworks.

This article by Frank de Jonge delves into the evolution of his own coding practices, focusing on the transition from heavy reliance on mocking frameworks to a preference for testing without them.

He highlights the high cost of change when using mocking frameworks, especially in the maintenance stage of code. He then suggests several best practices and provides detailed examples of how to test without using mocking frameworks. These include creating your own “fakes” or test doubles, and defining meaningful boundaries.

Frank believes that this approach creates clearer high-level code, allows for more predictable IDE refactors and ensures the tests do not contain implementation details.

Learn more on blog.frankdejonge.nl

Be the first to comment!

Get help or share something of value with other readers!

Great deals for enterprise developers
  • Summarize and talk to YouTube videos. Bypass ads, sponsors, chit-chat, and get to the point.
    Try Nobinge →
  • Monitor the health of your apps: downtimes, certificates, broken links, and more.
    20% off the first 3 months using the promo code CROZAT.
    Try Oh Dear for free
  • Keep the customers coming; monitor your Google rankings.
    30% off your first month using the promo code WELCOME30
    Try Wincher for free →
The latest community links
- / -