Back to directory
47degrees avatar

scalacheck-toolbox

A helping hand for generating sensible data with ScalaCheck. Read more below about its uses, features, and usage.

Clone repository

git clone https://github.com/47degrees/scalacheck-toolbox.git

118

Stars

7

Forks

45

Watchers

Apache-2.0

License

codecov.io Maven Central License Latest version GitHub Issues

scalacheck-toolbox

Installation

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

Releases

Feb 15, 2023

Download .zip

Overview This release contains library upgrades. Some upgrades are significant enough to increment the patch version. No major changes in the library itself. What's changed

Bump deps (#400) @fedefern...

Sep 27, 2021

Download .zip

What's changed

Update scalafmt-core to 3.0.5 (#278) @47erbot Update sbt-ci-release to 1.5.9 (#277) @47erbot Update sbt-github, sbt-github-header, ... to 0.10.0 (#276) @47erbot Update joda-time to 2.1...

Jun 14, 2021

Download .zip

What's changed ⚠️ Breaking changes

Cross-build Scala 3 (#259) @juanpedromoreno

📈 Dependency updates

Update sbt to 1.5.4 (#258) @47erbot Update sbt-scalajs, scalajs-compiler, ... to 1.6.0 (#256) @4...

What's changed This release includes a significant Arbitrary behavior change, as well as a couple new features. Previously, the Arbitrary[ZonedDateTime] provided would would not normalize your generat...

Oct 20, 2020

Download .zip

What's changed

Fix publishing settings after the removal of sbt-modules (#173) @sbrunk Add Scala.js support (#166) @sbrunk Specify complete links (#171) @BenFradet Update scalafmt-core to 2.5.3 (#150...