Testing serverless
Now, let us look at approaches to testing serverless. Similar to the rest of the sections in this chapter, we will be using AWS and Python as the references for the various topics we will cover here. Familiarity with testing, in general, is assumed. The following sections aim to provide guidelines and pointers rather than implementation examples.
Testing in serverless – challenges and approaches
Serverless boasts simplicity in development and architecture, but it poses a bunch of challenges while implementing testing strategies. A few major ones are listed as follows:
- Serverless has FaaS code that can be tested in the traditional ways of testing code, but the challenge arises because the code itself is tuned to be run in a specialized environment specific to the vendor/platform, and simulating those conditions becomes complicated when running locally or in a test environment.
- The application architecture is dependent on various cloud services...