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 個回答
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南