Skip to content

EmbeddedMongo connection helper for Specs2 tests suites

License

Notifications You must be signed in to change notification settings

almeidap/specs2-embedmongo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

EmbeddedMongo connection helper for Specs2 tests suites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published