I'm starting development on a Java-based project that will be using MongoDB as its database, and I'm trying to figure out the best way to include some automated integration tests that use MongoDB. I build my project using Maven, and I'm using Jenkins as a continuous integration server.
My question is, what are some of the popular and best ways to do this? Since I've just recently started the project, I'm trying to stick to as many best practices as possible. Some plugins tell you to start and stop a MongoDB instance with each test, but it seems to me like that is pretty inefficient, since you can spend 1-2 seconds restarting MongoDB for each test.
I've seen that some people use the Embed Mongo plugin for Maven, but it seems like it doesn't have very much documentation:
https://github.com/joelittlejohn/embedmongo-maven-plugin
And I've seen that others use the MongoDB Integration Plugin for Maven, but it requires installing MongoDB on any server that will run the tests:
https://github.com/webmetrics/mongodb-integration-plugin
What do most people in this community use, and what is considered the best practice?
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user...@googlegroups.com
See also the IRC channel -- freenode.net#mongodb