https://github.com/47degrees/scalacheck-toolbox
A helping hand for generating sensible data with ScalaCheck
https://github.com/47degrees/scalacheck-toolbox
date-time functional-programming jdk8 joda scala scalacheck
Last synced: 25 days ago
JSON representation
A helping hand for generating sensible data with ScalaCheck
- Host: GitHub
- URL: https://github.com/47degrees/scalacheck-toolbox
- Owner: 47degrees
- License: apache-2.0
- Created: 2016-07-04T09:03:50.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-03-31T05:22:03.000Z (about 1 month ago)
- Last Synced: 2025-04-09T15:06:46.297Z (25 days ago)
- Topics: date-time, functional-programming, jdk8, joda, scala, scalacheck
- Language: Scala
- Homepage: https://47degrees.github.io/scalacheck-toolbox/
- Size: 3.64 MB
- Stars: 120
- Watchers: 47
- Forks: 7
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Authors: AUTHORS.md
Awesome Lists containing this project
README
[](http://codecov.io/gh/47degrees/scalacheck-toolbox) [](https://oss.sonatype.org/#nexus-search;gav~com.47deg~scalacheck-toolbox*) [](https://raw.githubusercontent.com/47degrees/scalacheck-toolbox/master/LICENSE) [](https://index.scala-lang.org/47degrees/scalacheck-toolbox) [](https://github.com/47degrees/scalacheck-toolbox/issues)
scalacheck-toolbox
====# Installation
Add the following lines to your `build.sbt` file:
```scala
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`](https://47degrees.github.io/scalacheck-toolbox/docs/datetime/): Limit the test data to a certain range of times, and constrain generation to a certain level of precision.
* [`magic`](https://47degrees.github.io/scalacheck-toolbox/docs/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`](https://47degrees.github.io/scalacheck-toolbox/docs/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](https://47degrees.github.io/scalacheck-toolbox/docs) 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.
# Copyright
scalacheck-toolbox is designed and developed by 47 Degrees
Copyright (C) 2016-2020 47 Degrees.