avatar
在AWS如何作测试# Java - 爪哇娇娃
s*r
1
请问大牛们,在AWS如何作测试,像junit。我们要用SQS,DynamoDB,CloudSearch等等,
不容亦mock。我能想到的就是在AWS app 上专门开一个webservice endpoint作test用
,然后本地机器用curl发request 到那个app,drive 测试logic.
请大牛们给些idea. goodbug?
avatar
x*d
2
I don't understand. AWS is merely deployment option. How does it make the
development process any different. I would say same as deploying to other
servers?
If your AWS image is from local server, how would you do test on your local
server, it should be the same. Or you can install AWS image on your local
server to do test, if you don't make your AWS image from scratch.
avatar
g*g
3
If you are really doing unit test, you want to mock dependencies anyway, try
mockito. If you are doing integration test, you can run your service in a
test stack in the cloud.

【在 s*******r 的大作中提到】
: 请问大牛们,在AWS如何作测试,像junit。我们要用SQS,DynamoDB,CloudSearch等等,
: 不容亦mock。我能想到的就是在AWS app 上专门开一个webservice endpoint作test用
: ,然后本地机器用curl发request 到那个app,drive 测试logic.
: 请大牛们给些idea. goodbug?

avatar
g*e
4
DynaoDB has local testing tool, similar to hypersonic. SWF has its own
testing framework.
For others you can simply mock dependencies using mockito or jmockit.

【在 s*******r 的大作中提到】
: 请问大牛们,在AWS如何作测试,像junit。我们要用SQS,DynamoDB,CloudSearch等等,
: 不容亦mock。我能想到的就是在AWS app 上专门开一个webservice endpoint作test用
: ,然后本地机器用curl发request 到那个app,drive 测试logic.
: 请大牛们给些idea. goodbug?

avatar
x*d
5
I see what you saying now. cool. I don't know when we are going to use those
things from AWS. How your company decided to use DynamoDB? Any concerns? I
guess it is off topic, just curious.
avatar
k*e
6
自己写mock。我自己就写了SQS的mock。以前AWSSDK里面有mock,现在没有了。其实很
简单。
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。