Testing can become more difficult in a serverless environment due to the following few aspects:
- For the purposes of Integration testing, it is sometimes difficult to replicate the full cloud-based flow on a testing machine.
- The more distributed the system becomes, the more dependencies and points of failure are introduced, and the harder it becomes to test for every possible variation of the flow
- Load testing becomes an even more crucial aspect of testing the application, as some issues may only arise at scale
We will discuss testing of serverless applications in more detail in Chapter 8, Testing Your Azure Functions.