re: Don't Mock What You Don't Own VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

You can use dev instance, and for S3 there is actually a whole fake server :-)

But when you work with external libraries/services – you better work with real thing, because mocking it will hide real problems from you.

And if you have a nice wrapper around S3 lib – you won't have to test error handling every time you have to interact with this service. You'll have a set of tests that check if S3 still has the same interface and interacts with you in expected manner.

code of conduct - report abuse