Best strategy to Unit Test Raven Indexes

70 views
Skip to first unread message

aa

unread,
Sep 20, 2010, 4:30:49 PM9/20/10
to ravendb
Hello

Can anyone recommend what would be the best strategy to Unit Tests
raven indexes?

Is there any special support in raven to mock out the document store
in a non trivial way?

Regards
Albert

Ayende Rahien

unread,
Sep 20, 2010, 4:32:28 PM9/20/10
to rav...@googlegroups.com
Something like this:

For unit testing, you can set:
RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true

Adam

unread,
Sep 20, 2010, 5:39:01 PM9/20/10
to rav...@googlegroups.com
Can the tests be trusted to consistently behave the same when that mode is enabled? 

Ayende Rahien

unread,
Sep 20, 2010, 5:40:55 PM9/20/10
to rav...@googlegroups.com
Yes, they are consistent.
This mode basically turn off any crash recovery and run the indexes off of RAM Directory.
Reply all
Reply to author
Forward
0 new messages