Daily Term: Stubbing

Stubbing

Stubbing is a testing technique where a dependency is replaced with a simplified version that returns predefined responses. For example, in a JavaScript test, a stub might replace an API call to always return a specific JSON response, allowing the test to focus on the app’s logic. Stubbing ensures controlled and repeatable tests, but it can lead to false positives if the stubbed behavior doesn’t match the real system’s behavior.

Date: 2025-10-17

Select Date

Mon
Tue
Wed
Thu
Fri
Sat
Sun
Stubbing - Daily Tech Term | DevExCode | DevExCode