Recommendations and best practices

Here a few common best practices and set of recommendations that you should always keep in mind when it comes to testing Lambda functions:

  • Don't take testing lightly: Don't take testing your Lambda functions for granted. Make sure you start with unit testing of your functions and then even perform the integration tests to make sure all the components work together as expected. In some cases, you may even want to run.
  • Perform comprehensive unit testing: Always ensure that each unit test should be able to run independent of other unit tests. Also remember to test each condition of the code one at a time, but test it individually multiple times to ensure that the same result comes up no matter how many times ...

Get Mastering AWS Lambda now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.