/hmrctest

Scala library providing some useful functionality for unit and integration tests

Primary LanguageScalaApache License 2.0Apache-2.0

hmrctest

Build Status Download

hmrctest is a Scala library providing some useful functionality for unit and integration tests.

In order to use the classes from the uk.gov.hmrc.play.it package, you need to run smserver.

Adding to your service

Include one of the following dependencies in your SBT build based on whether you are using Play 2.5 or Play 2.6

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

libraryDependencies += "uk.gov.hmrc" %% "hmrctest" % "x.x.x-play-25" % "test"
or
libraryDependencies += "uk.gov.hmrc" %% "hmrctest" % "x.x.x-play-26" % "test"

Optionally, to make hmrctest-provided components available for dependency injection, add the following to your reference.conf:

play.modules.enabled += "uk.gov.hmrc.play.it.HmrcTestModule"

License

This code is open source software licensed under the Apache 2.0 License.