Driver

  • piece of code that calls a component or module that is being tested.

Stub

  • Returns only single response on every time

Mock

  • Smarter than Stub
  • Can return different responses on different API call

MonkeyPatch

  • Act of dynamically modifying the runtime code (not the source code) of a dynamic programming language
  • It adds or replaces programming aspects like methods, classes, attributes, and functions in memory.