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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠