I heard good praises about this project, so it might be good, but I'd
be concerned that we're not testing the real thing.
This could be great to mock the db for some operations, but could it
replace all of them while providing us with the same level of
confidence ?
What will the gap be in release times to adapt to mock newer features?
Considering that installing a MongoDB installation takes seconds, I
don't see a big win in using it, while there is a potential list of
trouble.
Considering H2 has some options to have it mimick Oracle and MySQL,
would you use it to test the ORM dialect for these databases? I don't
think I'd trust that.
This project might be great for simpler cases but I think that
replacing the "real thing" in our case will provide for lower quality
releases; maybe we could have the best of two worlds by using profiles
and providing this as a fallback when MongoDB is not installed, in
which case on CI I would want to verify tests on both.
Sanne
On 27 June 2013 15:24, Hardy Ferentschik <hardy(a)hibernate.org> wrote:
On 27 Jan 2013, at 2:20 PM, Gunnar Morling <gunnar(a)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.
--Hardy
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev