Read my latest article: Lessons in Open Source (posted Mon, 27 Jun 2016 17:04:00 GMT)

Don't Mock Me said the Dummy Object

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

2 comments Latest by J. B. Rainsberger Fri, 02 Jun 2006 21: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
Comments
  1. Avatar
    www.shanesbrain.net Thu, 19 Jan 2006 06:18:09 GMT

    Don’t mock me you stubby little fake dummy!

  2. Avatar
    J. B. Rainsberger Fri, 02 Jun 2006 21: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.