4 ms·
> It doesn't allow you to run all the other services like DynamoDB, SNS, S3, etc. locally. Sounds like you're mixing up how a test pyramid works. AWS SAM supp
by rualca 6y ago
> It doesn't allow you to run all the other services like DynamoDB, SNS, S3, etc. locally.
Sounds like you're mixing up how a test pyramid works.
AWS SAM supports running unit tests locally. Your remarks refer to integration tests. Integration tests are expected to be performed on environments that mimic either subsets of the production environment, or the whole production environment.
https://docs.aws.amazon.com/whitepapers/latest/serverless-architectures-lambda/integration-testing.html https://docs.aws.amazon.com/whitepapers/latest/serverless-ar...
- spdionis 6y agoWhat about manual tests? You know, just running the app on your machine and check if it works/how it works. You're forced to either share the aws resources with other devs or provision separate resources for each dev which is a big PITA.
- viraptor 6y agoAs long as you use terraform/cloudformation/sam, it should be fairly simple. You deploy everything with your name as a suffix. Most of the resources will be billed on usage only as well, so you don't even pay more than a few cents for testing like that.
- earthboundkid 6y agoIt’s only an “integration” test because you split things up too much. In a monolith, it would all be unit tests against a mock DB.