Integration Tests in AWS Lambda

0

We have a microservice code repo in AWS code commit, we use code pipeline and code build to build the project and deploy into lambda. We run unit tests as part of build itself. Now, I want to run the integration tests in the pipeline itself after the code deployed to lambda. If anyone setup such integration test suite in the aws code pipeline, kindly provide us some reference for the setup. It would be super helpful.

1 Answer
0

If you use CodeDeploy to deploy your code, you can use another lambda to run your test. You can configure if to run the test before or after allowing traffic, in the section hooks in your appspec.yml file. You can find more information on the documentation here: https://docs.aws.amazon.com/codedeploy/latest/userguide/reference-appspec-file-structure-hooks.html#appspec-hooks-lambda

profile picture
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions