Daily Shaarli

All links of one day in a single page.

May 2, 2021

Do not mock what you do not own

It sounds simple: test units of code without their real dependencies, use stubs or mocks instead. But if you don't control the replaced dependencies, things can quickly get out of control.