
Serverless developers should favor testing in the cloud as much as possible.
Tests that run in the cloud provide the most reliable, accurate and complete coverage. Mock frameworks are a valuable tool for writing fast unit tests, especially for testing complex internal business logic. Emulators may be convenient for some use cases but developers should rely on them sparingly.