Test your serverless application with Amazon SAM
After writing and building your application, you will be ready to test your application to verify that it functions correctly. With the Amazon SAM command line interface (CLI), you can locally test your serverless application before uploading it to the Amazon Cloud. Testing your application helps you confirm the application’s functionality, reliability, and performance all while identifying issues (bugs) that will need to be addressed.
This section provides guidance on common practices you can follow to test your application. The topics in this section focus mostly on the local testing you can do before deploying in the Amazon Cloud. Testing before deploying helps you identify issues proactively, reducing unnecessary costs associated with deployment issues. Each topic in this section describes a test you can perform, tells you the advantages of using it, and includes examples showing you how to perform the test. After testing your application, you’ll be ready to debug any issues you’ve found.
Topics
- Introduction to testing with the sam local command
- Locally invoke Lambda functions with Amazon SAM
- Locally run API Gateway with Amazon SAM
- Introduction to cloud testing with sam remote test-event
- Introduction to testing in the cloud with sam remote invoke
- Automate local integration tests with Amazon SAM
- Generate sample event payloads