Software Development Notes

Notes from nearly 30 years of software development

  • Home

Day: February 12, 2018

  • Home
  • 2018
  • February
  • 12

In automated tests, mock out non-intrinsic dependencies whenever possible

February 12, 2018November 14, 2018 Stephen R. PalmerSoftware Quality

Unless you are writing a full, end-to-end integration test, mock out any significant calls to other services or classes where the implementation is assumed to be correct for the purposes of your test. Ideally, use dependency injection (e.g. Spring framework) to make it easy to switch from mocks to the real…

“The longer one stays here the more does the spirit of the moor [Dartmoor] sink into one’s soul, its vastness, and also its grim charm.”

— Arthur Conan Doyle, The Hound of the Baskervilles

Recent Posts

  • Quality People
  • Eight Tips for writing a good definition of ‘done’
  • Aristotle on Code Ownership
  • Software Design Reviews – what are you reviewing?
  • Covering tackles and end-to-end testing

Categories

  • Old Stuff
  • Scrum
  • Software Development
  • Software Quality
  • Uncategorized

A Practical Guide to Feature-Driven Development

Copyright © All rights reserved.
Business Kit by ProDesigns