|
|
|
|
|
by marcosdumay
2074 days ago
|
|
On the best scenario, your fakes just replace some standard components your have on production with other standard components, and keep everything else equal. On those cases, no they don't need tests. But when you are doing something weirder, they pretty much do. On the best scenario, your mocks are just data that doesn't have timing characteristics, don't react to the system being tested, and are short enough to not need any kind of compression (in loops or gzip). On those cases, they don't need tests. But if you are doing anything weirder, they pretty much do. I honestly don't see any sense in separating them in categories like if they had discreete non-overlapping mono-dimensional properties. Anyway, why do you claim any of that is specific to OOP? |
|
There is no need for Mocks or Fakes with pure functions.