blob: d1db60fa89a8fa0a5a8286c3916e98f1b75782dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
---
tags:
- dev
- testing
---
[[Mocks aren't stubs]]
[[Verified fake]]
Oftentimes wrapping a third-party object in a lightweight facade will improve the code but also increases test-ability dramatically.
If the third-party library already exposes an idiomatic interface, it is probably not worth wrapping it into a similar one just so it belongs to you. (Cough openstacksdk).
---
https://hynek.me/articles/what-to-mock-in-5-mins/
|