📄️ An Introduction to Serverless Testing
A variety of different testing techniques are required to build production ready serverless applications. Some of which require a paradigm shift from what you as a developer might be used to. I'm a .NET developer to, so I know how much you love running up an application on local host and stepping through with your debugger. With serverless, this can be a challenge.
📄️ Test Ready Lambda Functions
To enable easy testing of our serverless applications there are some slight tweaks to make to our Lambda function. Instead of having a single constructor and performing all of our initiailization there, we are leveraging an internal constructor and dependency injection to give us a flexible easy to test function.
📄️ Unit Test Your Business Logic
Let's kick this section off with a quote from Martin Fowler around unit testing:
📄️ Integration Test In The Cloud
Our unit tests have all passed (Yay!) and we are confident our business logic works. Now it's time to test if the integrations themselves work, in this case an interaction with the S3 API's.