I am trying to migrate to new RavenDb 4.0
, old code for tests purposes was using EmbeddableDocumentStore
from the NuGet package: RavenDB.Database
.
Usage:
var documentStore = new EmbeddableDocumentStore
{
RunInMemory = true
};
documentStore.Configuration.Storage.Voron.AllowOn32Bits = true;
documentStore.Initialize();
I can't find that or simillar class in RavenDB 4.0
though, is there any kind of new approach to test the raven-dependent code?
Thank you
In RavenDB 4.0, all operations goes through the HTTP pipeline.
Basically you will be able to setup a store using https://github.com/ravendb/ravendb/blob/v4.0/test/Tests.Infrastructure/TestBase.cs GetNewServer
and there you have a runInMemory
boolean.
Later edit: As Ayende Rahien said below it can be used via Raven.TestDriver
package.
You'll need to setup a server, connect to it and run tests on that instance.