hmrc / reactivemongo-test   3.1.0-3-ge5f07cb

Apache License 2.0 GitHub

Test library for reactivemongo

Scala versions: 2.11

[DEPRECATED]

Use https://github.com/hmrc/hmrc-mongo instead

reactivemongo-test

Download Apache-2.0 license

Test library for reactivemongo

FailOnUnIndexedQueries

Mixing this trait into your spec will trigger test failure if un-indexed queries are executed. This is achieved by activating Mongo's notablescan option before running the spec (and turning it off afterwards).

Installing

Include the following dependency in your SBT build

resolvers += Resolver.bintrayRepo("hmrc", "releases")

libraryDependencies += "uk.gov.hmrc" %% "reactivemongo-test" % "[INSERT_VERSION]"
  • For Play 2.6.x, 2.7.x, 2.8.x (scala 2.12) use versions 5.x.x-play-26, 5.x.x-play-27, 5.x.x-play-28 respectively
  • For Play 2.6.x (scala 2.11) use versions 4.x.x-play-26