[hibernate-dev] [OGM] Embedded MongoDB for tests

Hardy Ferentschik hardy at hibernate.org
Thu Jun 27 08:24:06 EDT 2013

On 27 Jan 2013, at 2:20 PM, Gunnar Morling <gunnar at hibernate.org> wrote:

> I just came across across "EmbedMongo" [1] which provides a way to run
> MongoDB embedded within an application. This is e.g. convenient for tests
> as it doesn't require a separately installed MongoDB instance.

Interesting. I think that could be a nice solution. 

> I've tried it out with a single test and it worked as expected.
> Unfortunately MongoDB (the server) can't be retrieved as Maven dependency,
> EmbedMongo thus retrieves the distribution via HTTP and stores it in
> ~/.embedmongo/. This only happens once during the first usage.

Sounds reasonable. 

> What do you think, would that be helpful to be used for the OGM MongoDB
> tests (it might well be that this or similar options have been discussed
> before and I just missed that)?

I like the idea. AFAIK it has not been discussed so far.


More information about the hibernate-dev mailing list