47degrees / scalacheck-toolbox   0.2.0

Apache License 2.0 Website GitHub

A helping hand for generating sensible data with ScalaCheck

Scala versions: 3.x 2.13 2.12 2.11 2.10
Scala.js versions: 1.x

codecov.io Maven Central License Latest version GitHub Issues



Add the following lines to your build.sbt file:

libraryDependencies += "com.47deg" %% "scalacheck-toolbox-datetime"    % "0.7.0" % Test
libraryDependencies += "com.47deg" %% "scalacheck-toolbox-magic"       % "0.7.0" % Test
libraryDependencies += "com.47deg" %% "scalacheck-toolbox-combinators" % "0.7.0" % Test

A helping hand for generating sensible data with ScalaCheck

The ScalaCheck Toolbox is intended to be a set of libraries that can help rein in the power of ScalaCheck in a sensible way, while not impeding your tests. There are three libraries to help you:

  • datetime: Limit the test data to a certain range of times, and constrain generation to a certain level of precision.
  • magic: Enhance the provided generators with some values that are often used to signal danger, or perhaps something more sinister, such as the Strings "null", "False" or "Robert'); DROP TABLE Students;--".
  • combinators: Provide some useful combinators of generators, such as the pairing of a map and a list of values that are present in the map.

View the documentation for more tips on how to get the best from these tools.

scalacheck-toolbox in the wild not found

If you wish to add your library here please consider a PR to include it in the list below.


scalacheck-toolbox is designed and developed by 47 Degrees

Copyright (C) 2016-2020 47 Degrees. http://47deg.com