In TDD, a test double that replaces a component or system that the test subject depends on is called a _______.

  • Fake
  • Mock
  • Spy
  • Stub
In Test-Driven Development (TDD), a test double that replaces a component or system is called a Mock. Mock objects simulate the behavior of real objects in a controlled way during testing. They help isolate the unit under test.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *