s*******r 发帖数: 35 | 1 请问大牛们,在AWS如何作测试,像junit。我们要用SQS,DynamoDB,CloudSearch等等,
不容亦mock。我能想到的就是在AWS app 上专门开一个webservice endpoint作test用
,然后本地机器用curl发request 到那个app,drive 测试logic.
请大牛们给些idea. goodbug? |
x****d 发帖数: 1766 | 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. |
g*****g 发帖数: 34805 | 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?
|
g**e 发帖数: 6127 | 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?
|
x****d 发帖数: 1766 | 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. |
k********e 发帖数: 368 | 6 自己写mock。我自己就写了SQS的mock。以前AWSSDK里面有mock,现在没有了。其实很
简单。 |