Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

hmrc/reactivemongo-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[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