In unit testing, when a function relies on an external component, which technique is used to isolate the function for testing?
- Fuzzing
- Mutation Testing
- Regression Testing
- Stubbing
Stubbing involves creating a 'stub' or a simple implementation of the external component that simulates its behavior. This allows the function being tested to operate as if the external component is working, ensuring isolation in unit tests.
Loading...
Related Quiz
- Which phase of Risk Management in Testing involves determining the likelihood and impact of a risk?
- What differentiates a security audit from a vulnerability scan?
- Which static technique involves going through the software documentation to find defects?
- In which testing approach do you validate the software's workflow across multiple systems or components?
- During the software development process, you notice that a considerable amount of defects are introduced during the design phase. Which static technique can be most effectively used to mitigate this early on?