Read my latest article: 8 things I look for in a Ruby on Rails app (posted Thu, 06 Jul 2017 16:59:00 GMT)

Don't Mock Me said the Dummy Object

Posted by Wed, 18 Jan 2006 14:11:00 GMT

2 comments Latest by J. B. Rainsberger Fri, 02 Jun 2006 20:27:41 GMT

Martin Fowler posted a short entry on his bliki titled, TestDouble where he mentioned Gerard Meszaros’ book which is a collection of patterns for Xunit frameworks. Martin then describes how Gerard has encountered a lot of confusion over similar names for testing objects (stubs, mocks, fakes, dummies,...) in different frameworks and has provided a nice description of each to help you differentiate between them.

Read more…

Get help with your Rails project

comments powered by Disqus
  1. Avatar Thu, 19 Jan 2006 05:18:09 GMT

    Don’t mock me you stubby little fake dummy!

  2. Avatar
    J. B. Rainsberger Fri, 02 Jun 2006 20:27:41 GMT

    I have to agree with Martin. Ever since Gerard showed me the matrix of “who calls what what”, I have called them ‘test doubles’; however, I /still/ use the term “fake” where he uses “stub”. Perhaps I can get out of that habit; I don’t know.