Groups
Groups
Sign in
Groups
Groups
RavenDB - an awesome database
Conversations
About
Send feedback
Help
Best strategy to Unit Test Raven Indexes
70 views
Skip to first unread message
aa
unread,
Sep 20, 2010, 4:30:49 PM
9/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
9/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
Something like this:
http://github.com/ravendb/ravendb/blob/master/Raven.Client.Tests/Bugs/AccurateCount.cs
For unit testing, you can set:
RunInUnreliableYetFastModeThatIsNotSuitableForProduction
= true
Adam
unread,
Sep 20, 2010, 5:39:01 PM
9/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
9/20/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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