Testing SimpleDB

16 views
Skip to first unread message

mr.gaffo

unread,
Sep 2, 2010, 8:28:52 PM9/2/10
to SimpleRecord
I was wondering if anyone had any advice for testing against
simple_record?

joshmckin

unread,
Sep 3, 2010, 12:53:28 PM9/3/10
to SimpleRecord
Make sure you delete all your table test data after running tests. In
RSPEC, this is done automagically for ActiveRecord, but not for
simple_record.

Make use of the prefix option in your configuration to create your
test domains (if you are not using domains under a different login).

Stub and mock whenever possible, really helps to keep test speeds up
aside from the traditional benefits.

What out for latency. SimpleDB has about a 1 second delay, in most
cases, between writing and committing (not sure thats the right term).
You can configure SimpleDB to automatically delay your reads or you
can sleep after writes or before reads in your own code.

Mike Gaffney

unread,
Sep 3, 2010, 12:55:23 PM9/3/10
to simple...@googlegroups.com
So there's no mock version for test of simple_record then?

-Mike

--
You received this message because you are subscribed to the Google Groups "SimpleRecord" group.
To post to this group, send email to simple...@googlegroups.com.
To unsubscribe from this group, send email to simple-recor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-record?hl=en.


Reply all
Reply to author
Forward
0 new messages