stub-data-generator


License

License

Categories

Categories

Data
GroupId

GroupId

uk.gov.hmrc
ArtifactId

ArtifactId

stub-data-generator_2.10
Last Version

Last Version

0.5.3
Release Date

Release Date

Type

Type

jar
Description

Description

stub-data-generator
stub-data-generator
Project URL

Project URL

https://github.com/hmrclt/stub-data-generator
Project Organization

Project Organization

uk.gov.hmrc
Source Code Management

Source Code Management

https://github.com/hmrclt/stub-data-generator

Download stub-data-generator_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/uk.gov.hmrc/stub-data-generator_2.10/ -->
<dependency>
    <groupId>uk.gov.hmrc</groupId>
    <artifactId>stub-data-generator_2.10</artifactId>
    <version>0.5.3</version>
</dependency>
// https://jarcasting.com/artifacts/uk.gov.hmrc/stub-data-generator_2.10/
implementation 'uk.gov.hmrc:stub-data-generator_2.10:0.5.3'
// https://jarcasting.com/artifacts/uk.gov.hmrc/stub-data-generator_2.10/
implementation ("uk.gov.hmrc:stub-data-generator_2.10:0.5.3")
'uk.gov.hmrc:stub-data-generator_2.10:jar:0.5.3'
<dependency org="uk.gov.hmrc" name="stub-data-generator_2.10" rev="0.5.3">
  <artifact name="stub-data-generator_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='uk.gov.hmrc', module='stub-data-generator_2.10', version='0.5.3')
)
libraryDependencies += "uk.gov.hmrc" % "stub-data-generator_2.10" % "0.5.3"
[uk.gov.hmrc/stub-data-generator_2.10 "0.5.3"]

Dependencies

compile (6)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.6
org.scalacheck : scalacheck_2.10 jar 1.13.5
com.github.mpilquist : simulacrum_2.10 jar 0.12.0
com.chuusai : shapeless_2.10 jar 2.3.3
org.typelevel : cats-core_2.10 jar 1.1.0
io.github.amrhassan : scalacheck-cats_2.10 jar 0.4.0

test (1)

Group / Artifact Type Version
org.scalatest : scalatest_2.10 jar 3.0.5

Project Modules

There are no modules declared in this project.

Smart Stub Generator (a.k.a. The Font of Infinite Nonsense)

Maven Central

smart-stub-generator is a tool to create data for testing. It is intended for use within HMRC to help the 'stub' services — microservices that mimic the interfaces of production backend systems.

The data the generator produces is intended to be plausible but fake eliminating the need to either manually craft test records or take real records and anonymize them. For example when generating names, the names will look real rather than random strings.

The library is built for use within Scala Play 2.5 application controllers, but can be used as easily on the REPL or backed by a RDBMS.

SBT Project Setup

1. Add the following to build.sbt:

addSbtPlugin("uk.gov.hmrc" %% "stub-data-generator" % "X.X.X")

Documentation

  1. Using ScalaCheck to generate data
  2. Procedurally generating data
  3. Composing data
  4. Enumerations and Patterns
  5. Mutable Data
  6. Simple Usage

Versions

Version
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.3