Skip to main content

Hedgehog for Scala

Hedgehog

Release Status

ProjectMaven CentralMaven Central (JS)
hedgehog-coreMaven CentralMaven Central
hedgehog-runnerMaven CentralMaven Central
hedgehog-sbtMaven CentralMaven Central
hedgehog-minitestMaven CentralMaven Central
hedgehog-munitMaven CentralMaven Central
  • Supported Scala Versions: 2.11, 2.12, 2.13 and 3

Hedgehog will eat all your bugs.

Hedgehog is a modern property-based testing system, in the spirit of QuickCheck (and ScalaCheck). Hedgehog uses integrated shrinking, so shrinks obey the invariants of generated values by construction.

Current Status

This project is still in some form of early release. The API may break during this stage until (if?) there is a wider adoption.

Please drop us a line if you start using scala-hedgehog in anger, we'd love to hear from you.

Features

  • Integrated shrinking, shrinks obey invariants by construction.
  • Abstract state machine testing.
  • Range combinators for full control over the scope of generated numbers and collections.
  • SBT test runner
  • Currently no external dependencies in the core module