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.
Loading...
Related Quiz
- What tool is commonly used to analyze website performance metrics like load time and resource utilization?
- Infrastructure as Code helps in achieving _______ infrastructure deployment.
- The "git rebase -i" command allows for _______ commits interactively.
- What is the difference between == and === operators in JavaScript?
- You're designing a software system where you need to model different types of vehicles. Explain how you would utilize OOP concepts such as inheritance and polymorphism in this scenario.