O'Reilly logo

DevOps for Serverless Applications by Shashikant Bangera

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integration testing 

Integration testing is basically when tests cover more than one unit. Our Lambda function must be integrated with third-party code dependencies, which have to be tested thoroughly. That's where integration testing comes into play. Integration testing plays a very important role in the serverless world, but it is also expensive if you are always doing it over the cloud. But we can reduce the cost by mocking, as we talked about when looking at the LocalStack framework. Using this method, we can put it to use mocking a large number of AWS resources. 

Similarly, we can invoke the Lambda function locally using the serverless invoke local, and if our functions need to read/ write from DynamoDB, then this can also be mocked ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required