Test Drive Interesting Behaviors

A common confusion among beginners in Test Driven Development (TDD) is on what is worth test driving. Oftentimes, especially when using stubs and mocks, the tests are not pushing towards the interesting behaviors but rather checking the functioning of the language, framework, libraries, OS, or even the testing framework.

Starting from a user comment, Alex demonstrates an example of a technique that allows you to think more clearly about TDD as a beginner, and to separate the interesting behaviors from the rest.

Warning: contains coding! 🙂

More from the Blog

Leave a Comment

Your email address will not be published. Required fields are marked *

    Your Cart
    Your cart is empty
      Apply Coupon
      Scroll to Top