TechHui

Hawaiʻi's Technology Community

Chris Sass's Blog Posts Tagged 'tdd' (1)

Are you mocking me? (You should be)

This post is just a friendly reminder for those that practice TDD/BDD to make sure they are not putting more ceremony into their tests than is necessary.  Use mocks and stubs instead!

 

Mocks are just stand-ins that behave like the thing we want it to represent.  Stubs will fake a method call and return a canned response.  These save time both in setting up the test and in running it (depending on if your real objects are persisted in a test database).  When you test a method…

Continue

Added by Chris Sass on April 20, 2012 at 5:58pm — No Comments

Most Popular Blog Posts

Monthly Archives

2013

2012

Sponsors

web design, web development, localization

© 2024   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service