AWS Lambdas的合同测试 [英] Contract Testing for AWS Lambdas

查看:113
本文介绍了AWS Lambdas的合同测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以对AWS Lambda进行合同测试. Pact已用于普通API,但我正在尝试在AWS SAM上实施合同测试.有没有为此目的的工具,或者可以对Pact进行任何修改?

Is there any way to do Contract testing for the AWS lambdas. Pact is being used for normal APIs, But I am trying to implement Contract Testing on AWS SAM. Is there any tool for this or Pact can be used with any modifications?

推荐答案

是的,您可以使用Pact与Lambda进行合同测试.

Yes, you can use Pact to do contract testing with Lambda.

例如,Pact JS支持异步编程,并举例说明了使用无服务器框架的Lambda [1].

For example, Pact JS has support for asynchronous programming and has an example for Lambda using the serverless framework [1].

关于此事,也有一篇很好的介绍性文章[2].

There is a good intro article [2] on the matter also.

  • [1] https://github.com/pact-foundation/pact-js/#asynchronous-api-testing
  • [2] https://dius.com.au/2017/09/22/contract-testing-serverless-and-asynchronous-applications/

这篇关于AWS Lambdas的合同测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆