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…
ContinueAdded by Chris Sass on April 20, 2012 at 5:58pm — No Comments
© 2025 Created by Daniel Leuck.
Powered by