Serverless Testing - Unit and Integration
The Premise
When building out my applications, I try to push for a full testing pyramid and see if I can get 100% coverage.
The Issue
At the time or writing, there still doesn’t seem to be a standardised approach/method for Serverless Testing. Because of this I’ve created a breakdown of the testing approach as I see it and the best way to implement it within a simple serverless framework.
This solution may not work for all, but it worked well for the projects that I have been workig on.
The Solution
Unit Tests
At the time of writing, to comeplete Unit tests there are two main options, Mocha
or Jest
.