With specs2-embedmongo you can easily use embedmongo in your specs2 tests suites
You can add the EmbedConnection trait to your tests classes and that will provide a standalone instance of a MongoDB server using this project:
By default, it will open a connection (before the test suite) on the port 12345 and close it (after that) You can change thow default values:
- MongoDB port by overriding embedConnectionPort()
- MongoDB version by overriding embedMongoDBVersion()
Modify project/Build.scala
and add
"com.github.athieriot" %% "specs2-embedmongo" % "0.5"