Adding Automated Tests to a Basic AWS Lambda

Learn how to apply automated testing to a basic AWS Lambda application.

Testing a function handler

A function handler in a basic AWS Lambda application can be tested directly; it’s a simple class method, and any class method can be tested directly by any test automation frameworks available in .NET. The following playground demonstrates how we can test the AWS Lambda function handler method. It contains a very basic AWS Lambda application with a handler that accepts an input string and returns an uppercase version. We added an xUnit test project to validate this behavior.

Get hands-on with 1200+ tech skills courses.