hmrc / reactivemongo-test

Test library for reactivemongo

Version Matrix

reactivemongo-test

Download Apache-2.0 license Build Status

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 Java 7 and Play 2.3.x use versions <=1.1.0