Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 852 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 852 Bytes

EmbedMongo connection helper for Specs2 tests

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()

What it looks like?

Add as dependency

Modify project/Build.scala and add

"com.github.athieriot" %% "specs2-embedmongo" % "0.5"